Class that:
More...
#include <cs_MeshCore.h>
Class that:
- Initializes the mesh.
- Handles mesh events.
- Performs provisioning.
- Manages mesh flash.
◆ callback_model_configure_t
Callback function definition.
◆ callback_model_init_t
Callback function definition.
◆ callback_scan_t
Callback function definition.
◆ MeshCore() [1/2]
Constructor, singleton, thus made private.
◆ MeshCore() [2/2]
Copy constructor, singleton, thus made private.
◆ eraseAllPages()
Erase all flash pages used by the mesh for storage.
◆ factoryReset()
| void MeshCore::factoryReset |
( |
| ) |
|
Factory reset.
Clear all stored data. Will send event EVT_MESH_FACTORY_RESET when done.
◆ factoryResetDone()
| void MeshCore::factoryResetDone |
( |
| ) |
|
◆ getFlashPages()
| void MeshCore::getFlashPages |
( |
void *& |
startAddress, |
|
|
void *& |
endAddress |
|
) |
| |
|
private |
◆ getInstance()
| static MeshCore & MeshCore::getInstance |
( |
| ) |
|
|
static |
◆ getUnicastAddress()
| uint16_t MeshCore::getUnicastAddress |
( |
| ) |
|
Get the unicast address of this crownstone.
◆ handleEvent()
| void MeshCore::handleEvent |
( |
event_t & |
event | ) |
|
|
virtual |
◆ init()
Init the mesh.
Register callbacks first.
- Returns
- ERR_SUCCESS Initialized successfully.
-
ERR_WRONG_STATE Flash pages should be erased.
◆ isFlashValid()
| bool MeshCore::isFlashValid |
( |
| ) |
|
Whether flash pages have valid data.
If not, the pages should be erased.
◆ modelsInitCallback()
| void MeshCore::modelsInitCallback |
( |
| ) |
|
◆ operator=()
Assignment operator, singleton, thus made private.
◆ provision()
| void MeshCore::provision |
( |
| ) |
|
◆ provisionLoad()
| void MeshCore::provisionLoad |
( |
| ) |
|
|
private |
◆ provisionSelf()
| void MeshCore::provisionSelf |
( |
uint16_t |
id | ) |
|
|
private |
◆ registerModelConfigureCallback()
Register a callback function that's called when the models should be configured.
◆ registerModelInitCallback()
Register a callback function that's called when the models should be initialized.
◆ registerScanCallback()
Register a callback function that's called when a device was scanned.
◆ scanCallback()
| void MeshCore::scanCallback |
( |
const nrf_mesh_adv_packet_rx_data_t * |
scanData | ) |
|
◆ setTxPower()
Set the TX power of mesh messages.
◆ start()
◆ stop()
Stop using the radio.
- Returns
- ERR_SUCCESS When the mesh stopped.
-
ERR_WAIT_FOR_SUCCESS When the mesh will stop, wait for NRF_MESH_EVT_DISABLED.
◆ _appkey
| uint8_t MeshCore::_appkey[NRF_MESH_KEY_SIZE] |
|
private |
◆ _appkeyHandle
| dsm_handle_t MeshCore::_appkeyHandle = DSM_HANDLE_INVALID |
|
private |
◆ _devkey
| uint8_t MeshCore::_devkey[NRF_MESH_KEY_SIZE] |
|
private |
◆ _devkeyHandle
| dsm_handle_t MeshCore::_devkeyHandle = DSM_HANDLE_INVALID |
|
private |
◆ _isProvisioned
| bool MeshCore::_isProvisioned = false |
|
private |
◆ _modelConfigureCallback
◆ _modelInitCallback
◆ _netkey
| uint8_t MeshCore::_netkey[NRF_MESH_KEY_SIZE] |
|
private |
◆ _netkeyHandle
| dsm_handle_t MeshCore::_netkeyHandle = DSM_HANDLE_INVALID |
|
private |
◆ _ownAddress
| uint16_t MeshCore::_ownAddress = 0 |
|
private |
◆ _performingFactoryReset
| bool MeshCore::_performingFactoryReset = false |
|
private |
◆ _scanCallback
The documentation for this class was generated from the following file: