I am super new to Bluz and I’ve been reading up on the documentation for power management, but unfortunately I am not fully grasping the different communication settings to achieve low power states.
First, in http://docs.bluz.io/tutorials/low_power/ what is the fundamental difference between “advertising” and “connecting”? There is a setadvertisingintervalinterval() function that sets the interval at which the Bluz DK send packets, how is this fundamentally different from set_connection_parameters() on the gateway? Should I think of “advertising” as the interval at which a connection is established between Bluz DK and central station, while “connection” as the interval at which data is sent across from one device to the other?
With this I would only conclude that advertising interval has to be lower than connection interval, other wise when the devices are trying to transmit data, there will be no connection between them, and that’s when a lower data throughput and latency occurs. On another note, how is BLE.disconnect() different from BLE.stopAdvertising(), wouldn’t they practically do the same thing?
I am planning to only advertise on an external interrupt using the start/stopAdvertising() functions. So I am hoping someone can clarify the devices connection aspects before I try to transmit data. I am guessing after I startAdvertise() I am going to have to wait until “BLE.getState() == BLE_CONNECTED” using delays, then I’ll Send.Data() in order to transmit data… Does that sound logical? Please let me know if I am approaching this the wrong way.