RePhone_on_Linux icon indicating copy to clipboard operation
RePhone_on_Linux copied to clipboard

Callback functions are not working

Open siddharthtaunk opened this issue 7 years ago • 1 comments

Hi,

Tried callback functions for mqtt - does not work Tried the example for http get (Page 35 of lua_for_rePhone manula) - this also does not work

We have tried this

function onmessage_cb_func(length, topic, msg)
	-- print('in on message')
	 print(msg)
	-- return msg
end

mqtt_id = mqtt.create({host = "xyz.pqr.com", port = 1883, qos = 2, onmessage = onmessage_cb_func})

The above code doesn't work There is an issue with the lib regards. Sid

siddharthtaunk avatar Aug 03 '17 07:08 siddharthtaunk

I have given up on it already... ultimately, a piece of junk. Should have gone for the established combination with Arduino.

methylester avatar Aug 04 '17 08:08 methylester