|
Bluenet
5.7.0
Bluenet, firmware for nRF52 smart home devices
|
Class that keeps up states of other stones. More...
#include <cs_ExternalStates.h>

Public Member Functions | |
| void | init () |
| void | receivedState (state_external_stone_t *extState) |
| To be called when the state of another stone has been received. More... | |
| service_data_encrypted_t * | getNextState () |
| Get a state to be broadcasted. More... | |
| void | tick (TYPIFY(EVT_TICK) tickCount) |
| To be called every EVT_TICK. More... | |
Private Member Functions | |
| void | removeFromList (stone_id_t id) |
| void | addToList (int index, stone_id_t id, state_external_stone_t *state) |
| void | fixState (state_external_stone_t *state) |
| int8_t | getRssi (stone_id_t id) |
Private Attributes | |
| cs_external_state_item_t * | _states |
| int | _broadcastIndex = 0 |
| Index of states to be broadcasted next. More... | |
Class that keeps up states of other stones.
This includes:
|
private |
|
private |
| service_data_encrypted_t * ExternalStates::getNextState | ( | ) |
Get a state to be broadcasted.
Returns NULL if no state was found.
|
private |
| void ExternalStates::init | ( | ) |
| void ExternalStates::receivedState | ( | state_external_stone_t * | extState | ) |
To be called when the state of another stone has been received.
|
private |
|
private |
Index of states to be broadcasted next.
|
private |