1
TinyDuino Processors & TinyShields / Re: Bluetooth Tutorial
« on: January 30, 2015, 07:57:03 PM »
Hello ,
Try using the nRF Master Control app on Google Play to discover your device & talk to it. The BLE BGLib doesn't need any encryption/ pairing to send and receive data. I am using the GATT_HANDLE_C_TX_DATA handle and the function call to command attribute write.
the following are the parameters to this function.
/* Function */
void ble_cmd_attclient_write_command(
uint8 connection,
uint16 atthandle,
uint8 data_len,
const uint8* data_data
);
my_data is just an array of size 10. Use the following in void loop()
uint8_t result = ble112.ble_cmd_attributes_write(GATT_HANDLE_C_TX_DATA,0, 10,my_data);
Hope this helps,
Regards,
Try using the nRF Master Control app on Google Play to discover your device & talk to it. The BLE BGLib doesn't need any encryption/ pairing to send and receive data. I am using the GATT_HANDLE_C_TX_DATA handle and the function call to command attribute write.
the following are the parameters to this function.
/* Function */
void ble_cmd_attclient_write_command(
uint8 connection,
uint16 atthandle,
uint8 data_len,
const uint8* data_data
);
my_data is just an array of size 10. Use the following in void loop()
uint8_t result = ble112.ble_cmd_attributes_write(GATT_HANDLE_C_TX_DATA,0, 10,my_data);
Hope this helps,
Regards,