void on_ready(void) { /*Config Adv Parameter And Ready to Adv*/ ble_set_adv_param(name, adv_address, tx_power_level, adv_interval); ble_device_start_advertising(); }
void on_ready(void) { uint8_t tx_power_level = 7; uint16_t adv_interval = 100; /*config adv parameter and start to adv*/ ble_set_adv_param(name, adv_address, tx_power_level, adv_interval); ble_device_start_advertising(); }
void on_ready(void) { hum_temp_monitor_init(); /*Config Adv Parameter And Ready to Adv*/ ble_set_adv_param(name, adv_address, tx_power_level, adv_interval); ble_device_start_advertising(); read_temp_hum(NULL); }
void on_ready(void) { uint8_t tx_power_level = 5; uint16_t scan_interval = 400, adv_interval = 567; uint8_t bdAddr[6] = {0x04,0x02,0x04,0x03,0x07,0x0d }; HCI_get_bdAddr(bdAddr); /*Config Adv Parameter And Ready to Adv*/ ble_set_adv_param(board_name, bdAddr, tx_power_level, adv_interval); ble_device_start_advertising(); /*Host*/ ble_host_set_scan_param(tx_power_level, bdAddr, scan_interval); ble_host_start_scan(NULL); }
void on_ready(void) { uint8_t tx_power_level = 7; uint16_t adv_interval = 100; uint8_t bdAddr[6]; char name[32]; running = 0; BSP_LED_On(LED0); HCI_get_bdAddr(bdAddr); sprintf(name, "%s %01x%01x", board_name, bdAddr[0], bdAddr[1]); /*Config Adv Parameter And Ready to Adv*/ ble_set_adv_param(name, bdAddr, tx_power_level, adv_interval); ble_device_start_advertising(); }
void on_ready(void) { uint8_t bdAddr[6] = {0x03,0x03,0x03,0x03,0x03,0x03}; #ifdef CLIENT_ROLE /*Host*/ ble_host_set_scan_param(bdAddr, tx_power_level, scan_interval); ble_host_start_scan(); #else HCI_get_bdAddr(bdAddr); adv_name_generate(bdAddr+4); /*Config Adv Parameter And Ready to Adv*/ ble_set_adv_param(name, bdAddr, tx_power_level, adv_interval); ble_device_start_advertising(); #endif //run_after_delay(sensor_read, NULL, 500); }
void on_ready(void) { uint8_t tx_power_level = 5; uint16_t adv_interval = 100; uint8_t bdAddr[6]; uint32_t data_rate = SAMPLINGRATE; HCI_get_bdAddr(bdAddr); adv_name_generate(bdAddr + 4); /*Config Adv Parameter And Ready to Adv*/ ble_set_adv_param(name, bdAddr, tx_power_level, adv_interval); ble_device_start_advertising(); BSP_LED_Off(LED0); imu_sensor_9_axis_reset(); imu_sensor_9_axis_set_data_rate(&data_rate, LSM6DS3_XG_FIFO_MODE_CONTINUOUS_OVERWRITE); imu_sensor_9_axis_start(); }