This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

about s120 & s130 send data

At s120,i used the following code to send data (to s110)

if(	( wIndicationFlag_Get() == true ) && ( wConfirmFlag_Get() == true ) )		
{
	//APPL_LOG("Write Data\r\n");
	pSend_aray = Load_data();													
	ble_gip_c_bl_write(&m_ble_bas_c,pSend_aray);
}

At s130,how to send data(to s110)?Is have a example code? thanks.

Parents Reply
  • Hello, If the peripheral sent data to central, i want to use Battery Level, how to set the parameter(central)?

    The Nordic UART Service UUID parameter :

    #define NUS_BASE_UUID                  {{0x9E, 0xCA, 0xDC, 0x24, 0x0E, 0xE5, 0xA9, 0xE0, 0x93, 0xF3, 0xA3, 0xB5, 0x00, 0x00, 0x40, 0x6E}} /**< Used vendor specific UUID. */
    
    #define BLE_UUID_NUS_SERVICE           0x0001                      /**< The UUID of the Nordic UART Service. */
    #define BLE_UUID_NUS_TX_CHARACTERISTIC 0x0002                      /**< The UUID of the TX Characteristic. */
    #define BLE_UUID_NUS_RX_CHARACTERISTIC 0x0003                      /**< The UUID of the RX Characteristic. */
    
Children
No Data
Related