/* Register Gatt server callback */
register_gatt_server_callbacks();
/* Start Advertising process */
start_advertisement();
while(true)
{
ble_event_task();
if(connected_flag == true && timer_flag == true) {
timer_flag = false;
send_temperature_notification();
}
}
}
ATBTLC1000
Appendix B: Software Solution - Custom Service
©
2017 Microchip Technology Inc.
Training Manual
DS00002599A-page 52