add nimble uart

download "nimble connect" on your phone, connect to "Nimble Uart", send byte array or uint8 to the board through the app
This commit is contained in:
daishengdong
2019-11-15 15:37:06 +08:00
parent b56314d28f
commit bae04c6774
51 changed files with 94780 additions and 59846 deletions

View File

@@ -73,6 +73,8 @@ update_ad(void)
ble_gap_adv_set_data(ad, ad_len);
}
#if 0
#if 1
/* UUID = 1bce38b3-d137-48ff-a13e-033e14c7a335 */
static const ble_uuid128_t gatt_svr_svc_rw_demo_uuid
@@ -157,6 +159,8 @@ void ble_set_fields(void)
}
}
#endif
int ble_boot(void)
{
int rc = 0;
@@ -190,7 +194,10 @@ int ble_boot(void)
update_ad();
#if 0
ble_set_fields();
#endif
start_advertise();
return 0;