MQTT > MQTT

Sending Beacon Data Over MQTT

(1/3) > >>

kbrooking:
Is it possible to use beacons to send temperature and battery level data every 10 seconds over MQTT and still maintain 2 years battery life? If so, do you have any sample code that shows how to do this?

kbrooking:
I guess what I'm really asking here is what is the difference in power consumption wise between sending a regular beacon and sending a beacon over MQTT if any?

mc-John:
There is a large difference in power consumption between sending a beacon or sending to the MQTT server. It is probably 20-times lower power. To lower the power you should limit the connection time to 5 minutes. There are beacon commands to fill the 8 bytes beacon message. See the user manual for the commands, just search beacon in the pdf. Also read the white paper about beaconing which describes the format.

mc-John:

--- Quote ---sending a regular beacon and sending a beacon over MQTT
--- End quote ---

Beacons are always send, with or without data in it. You can set the frequency yourself, see user manual. I think that the default is 10-sec.
If a gateway receives a beacon and has valid MQTT broker and the box "Send Beacons" is on it will send the beacons to the MQTT broker.

kbrooking:
So if I have a MQTT server defined in the GW configuration, every time I issue a "SendBecaon" command the mcGateway will relay this to the MQTT server?

Navigation

[0] Message Index

[#] Next page

Go to full version