Android Question Newbie events question (with BLE2)

Ivan Lo Presti

New Member
Licensed User
Longtime User
Hi, i am new to this environment so sorry for the silly question.. :)
this is the situation:
1) I read from my BLE device
2) after about 30 seconds I get a ble2 message with my data and I can show it in a label.
3) I get this message, parse it and format it in json
4) send this json message via mqtt
for some reason, if i do everything in this sequence, the mqtt message has no values in it. If i trigger the event via a button which I push manually, then I get the message with my data in it. So i believe I need either to have wait for data to be available through some event or i should set a timer and send data after a certain time. Either way i don't know what should I use. Any help would be greatly appreciated. thanks!
 
Top