Bluenet  5.7.0
Bluenet, firmware for nRF52 smart home devices
Loading...
Searching...
No Matches
cs_MicroappRequestHandler.h
Go to the documentation of this file.
1#pragma once
2
3#include <common/cs_Types.h>
4#include <cs_MicroappStructs.h>
5
11private:
18
19protected:
25 cs_ret_code_t handleRequestLog(microapp_sdk_log_header_t* log);
26 cs_ret_code_t handleRequestPin(microapp_sdk_pin_t* pin);
27 cs_ret_code_t handleRequestSwitch(microapp_sdk_switch_t* switch_);
28 cs_ret_code_t handleRequestServiceData(microapp_sdk_service_data_t* serviceData);
29 cs_ret_code_t handleRequestTwi(microapp_sdk_twi_t* twi);
30 cs_ret_code_t handleRequestBle(microapp_sdk_ble_t* ble);
31
32 cs_ret_code_t handleRequestBleScan(microapp_sdk_ble_t* ble);
33 cs_ret_code_t handleRequestBleCentral(microapp_sdk_ble_t* ble);
34 cs_ret_code_t handleRequestBlePeripheral(microapp_sdk_ble_t* ble);
35
36 cs_ret_code_t handleRequestMesh(microapp_sdk_mesh_t* mesh);
37 cs_ret_code_t handleRequestPowerUsage(microapp_sdk_power_usage_t* powerUsage);
38 cs_ret_code_t handleRequestPresence(microapp_sdk_presence_t* presence);
39 cs_ret_code_t handleRequestControlCommand(microapp_sdk_control_command_t* controlCommand);
40 cs_ret_code_t handleRequestMessage(microapp_sdk_message_t* packet);
41 cs_ret_code_t handleRequestBluenetEvent(microapp_sdk_bluenet_event_t* packet);
42 cs_ret_code_t handleRequestAsset(microapp_sdk_asset_t* asset);
43 cs_ret_code_t handleRequestYield(microapp_sdk_yield_t* yield);
44
46
47public:
49 static MicroappRequestHandler instance;
50 return instance;
51 }
52
57 cs_ret_code_t handleMicroappRequest(microapp_sdk_header_t* header);
58};
Base class for a BLE characteristic.
Definition: cs_CharacteristicBase.h:42
The class MicroappRequestHandler has functionality to store a second app (and perhaps in the future e...
Definition: cs_MicroappRequestHandler.h:10
cs_ret_code_t handleRequestAsset(microapp_sdk_asset_t *asset)
void operator=(MicroappRequestHandler const &)
cs_ret_code_t handleRequestBle(microapp_sdk_ble_t *ble)
cs_ret_code_t handleRequestControlCommand(microapp_sdk_control_command_t *controlCommand)
cs_ret_code_t handleRequestMesh(microapp_sdk_mesh_t *mesh)
cs_ret_code_t handleRequestPresence(microapp_sdk_presence_t *presence)
cs_ret_code_t handleRequestBluenetEvent(microapp_sdk_bluenet_event_t *packet)
cs_ret_code_t handleRequestMessage(microapp_sdk_message_t *packet)
cs_ret_code_t handleRequestBleScan(microapp_sdk_ble_t *ble)
cs_ret_code_t handleRequestSwitch(microapp_sdk_switch_t *switch_)
MicroappRequestHandler()
Singleton, constructor, also copy constructor, is private.
Definition: cs_MicroappRequestHandler.h:15
cs_ret_code_t handleMicroappRequest(microapp_sdk_header_t *header)
Handle requests from the microapp.
cs_ret_code_t handleRequestTwi(microapp_sdk_twi_t *twi)
static MicroappRequestHandler & getInstance()
Definition: cs_MicroappRequestHandler.h:48
cs_ret_code_t handleRequestYield(microapp_sdk_yield_t *yield)
cs_ret_code_t handleRequestServiceData(microapp_sdk_service_data_t *serviceData)
cs_ret_code_t handleRequestBlePeripheral(microapp_sdk_ble_t *ble)
cs_ret_code_t handleRequestLog(microapp_sdk_log_header_t *log)
SDK-type specific handlers.
cs_ret_code_t handleRequestPin(microapp_sdk_pin_t *pin)
cs_ret_code_t handleRequestPowerUsage(microapp_sdk_power_usage_t *powerUsage)
MicroappRequestHandler(MicroappRequestHandler const &)
CharacteristicBase * getCharacteristic(uint16_t handle)
cs_ret_code_t handleRequestBleCentral(microapp_sdk_ble_t *ble)
uint16_t cs_ret_code_t
Definition: cs_Typedefs.h:21