lib/sat_parser.rb in keyhole-0.1.4 vs lib/sat_parser.rb in keyhole-0.1.5
- old
+ new
@@ -9,10 +9,12 @@
end
def receive_data(data)
puts "Data received..."
puts data.inspect
- @db.query("insert into locations(latitude, longitude) value('ninja', 'neger');")
+ q = @db.query("insert into locations(latitude, longitude) value('ninja', 'neger');")
+ q.callback{|res| puts res.inspect}
+ q.errback{|res| puts "E:"+res.inspect}
$channel << data
end
def unbind
$channel << "GSAT closed connection"
\ No newline at end of file