This section describes the M2MB APIs for WIP(Wireless(BLE) Interface Provisioning) More...
This section describes the M2MB APIs for WIP(Wireless(BLE) Interface Provisioning)
◆ WIP_CHAR_CONFIG_DATA_UUID_CONSTANT
#define WIP_CHAR_CONFIG_DATA_UUID_CONSTANT {0x39, 0x11} |
◆ WIP_CHAR_SCAN_DATA_UUID_CONSTANT
#define WIP_CHAR_SCAN_DATA_UUID_CONSTANT {0x38, 0x11} |
Configuration Data Characteristics UUID constant
Definition at line 49 of file m2mb_ble_prov.h.
◆ WIP_CHAR_SCAN_TRIGGER_UUID_CONSTANT
#define WIP_CHAR_SCAN_TRIGGER_UUID_CONSTANT {0x37, 0x11} |
Scan Data Characteristics UUID constant
Definition at line 47 of file m2mb_ble_prov.h.
◆ WIP_CHAR_STATUS_UUID_CONSTANT
#define WIP_CHAR_STATUS_UUID_CONSTANT {0x40, 0x11} |
The following define characteristics attribute offset Scan Trigger Characteristics attribute offset
Definition at line 53 of file m2mb_ble_prov.h.
◆ WIP_CREDITS_CONIFG_DATA_ATTRIBUTE_OFFSET
#define WIP_CREDITS_CONIFG_DATA_ATTRIBUTE_OFFSET 7 |
Status Characteristics attribute offset
Definition at line 64 of file m2mb_ble_prov.h.
◆ WIP_CREDITS_SCAN_DATA_ATTRIBUTE_OFFSET
#define WIP_CREDITS_SCAN_DATA_ATTRIBUTE_OFFSET 4 |
Scan Data notifications attribute offset
Definition at line 60 of file m2mb_ble_prov.h.
◆ WIP_CREDITS_SCAN_DATA_NOTIFICATION_ATTRIBUTE_OFFSET
#define WIP_CREDITS_SCAN_DATA_NOTIFICATION_ATTRIBUTE_OFFSET 5 |
Configuration Data Characteristics attribute offset
Definition at line 62 of file m2mb_ble_prov.h.
◆ WIP_CREDITS_SCAN_TRIGGER_ATTRIBUTE_OFFSET
#define WIP_CREDITS_SCAN_TRIGGER_ATTRIBUTE_OFFSET 2 |
Scan Data Characteristics attribute offset
Definition at line 58 of file m2mb_ble_prov.h.
◆ WIP_CREDITS_STATUS_ATTRIBUTE_OFFSET
#define WIP_CREDITS_STATUS_ATTRIBUTE_OFFSET 9 |
◆ WIP_CREDITS_STATUS_NOTIFICATION_ATTRIBUTE_OFFSET
#define WIP_CREDITS_STATUS_NOTIFICATION_ATTRIBUTE_OFFSET 10 |
◆ WIP_SERVICE_UUID_CONSTANT
#define WIP_SERVICE_UUID_CONSTANT {0x36, 0x11} |
< The following define WIP(Wireless(BLE) Interface Provisioning) Services and characteristics UUIDs < The following define service UUID constant Scan Trigger Characteristics UUID constant
Definition at line 45 of file m2mb_ble_prov.h.
◆ m2mb_wip_service_deregister()
VOID m2mb_wip_service_deregister | ( | ) |
This function is used to de-register the WIP(Wireless(BLE) Interface Provisioning) Service.
This function is used to de-register the WIP(Wireless(BLE) Interface Provisioning) Service.
ReturnsNone. Note<Notes>Example
int main()
{
...
if(retVal != 0)
{
M2MB_WIP_DEBUG_PRINTF("WIP registering service failed\r\n");
}
return;
}
◆ m2mb_wip_service_register()
INT32 m2mb_wip_service_register | ( | ) |
This function is used to register the WIP(Wireless(BLE) Interface Provisioning) Service.
This function is used to register the WIP(Wireless(BLE) Interface Provisioning) Service. if this function is successfull,it will rerturn Zero else error.
ReturnsZero if successful. An error code. Note<Notes>Example
int main()
{
...
if(retVal != 0)
{
M2MB_WIP_DEBUG_PRINTF("WIP registering service failed\r\n");
}
...
if(retVal != 0)
{
M2MB_WIP_DEBUG_PRINTF("Adrvertise Failed\r\n");
}
m2mb_prov_cfg_nwk_provisioning(cfg);
}
ncG1vNJzZmirY2Ourq3ZqKWar6NjsLC5jqygrZ2PqMKxvM6rq2iMlaG2tXugqaeTp56aepSQqmitbWdxpb2bu82eloCtmZmycK3ZZq6inplirrG1jKucn2WXqralsY6aZ2lqaWx7qcDMpQ%3D%3D