i want to connect Nordic thingy to a nrf 52840 soc with ble central example.
all i want to get is thingy environment service and get temperature and humidity values on ble central device.
please, help me out how to do it.
i want to connect Nordic thingy to a nrf 52840 soc with ble central example.
all i want to get is thingy environment service and get temperature and humidity values on ble central device.
please, help me out how to do it.
Hi
Unfortunately we don't have client code for the Thingy services for the nRF52 side. All the standard examples assume that the client will be a phone or a PC.
I will check with the team if we are planning to add nRF52 client support, and update my answer once I know more.
Best regards
Torbjørn
Hey nikunj8086 ,
I am doing a project right now with a nRF52840 and a Thingy 52, my nRF52840 will be the central as well. I am working on the LED button service example now.
If you check the BLE_service files, for example the "ble_lbs_c.c & .h " file you can change the UUID and get some button values from the Thingy52 at least.
Below is what I changed in the ble_lbs_c.h file when working with the LED_button_switch example.
/* OLD VALUES : changed for thingy52
#define LBS_UUID_BASE {0x23, 0xD1, 0xBC, 0xEA, 0x5F, 0x78, 0x23, 0x15, \
0xDE, 0xEF, 0x12, 0x12, 0x00, 0x00, 0x00, 0x00}
#define LBS_UUID_SERVICE 0x1523
#define LBS_UUID_BUTTON_CHAR 0x1524
#define LBS_UUID_LED_CHAR 0x1525 */
#define LBS_UUID_BASE {0x42, 0x00, 0x74, 0xA9, 0xFF, 0x52, 0x10, 0x9B, 0x33, 0x49, 0x35, 0x9B, 0x00, 0x00, 0x68, 0xEF}
#define LBS_UUID_SERVICE 0x0300
#define LBS_UUID_BUTTON_CHAR 0x0302
#define LBS_UUID_LED_CHAR 0x0301
this is regarding the " ble_app_multilink_central " example found in the SDK.
With these changes I can read the button state from the Thingy52, although I can't write LED values to the Thingy52 yet. I think that has to do with the data size in the following function uint32_t ble_lbs_led_status_send(ble_lbs_c_t * p_ble_lbs_c, uint8_t status)
code in "ble_lbs_c.c"
Hey nikunj8086 ,
I am doing a project right now with a nRF52840 and a Thingy 52, my nRF52840 will be the central as well. I am working on the LED button service example now.
If you check the BLE_service files, for example the "ble_lbs_c.c & .h " file you can change the UUID and get some button values from the Thingy52 at least.
Below is what I changed in the ble_lbs_c.h file when working with the LED_button_switch example.
/* OLD VALUES : changed for thingy52
#define LBS_UUID_BASE {0x23, 0xD1, 0xBC, 0xEA, 0x5F, 0x78, 0x23, 0x15, \
0xDE, 0xEF, 0x12, 0x12, 0x00, 0x00, 0x00, 0x00}
#define LBS_UUID_SERVICE 0x1523
#define LBS_UUID_BUTTON_CHAR 0x1524
#define LBS_UUID_LED_CHAR 0x1525 */
#define LBS_UUID_BASE {0x42, 0x00, 0x74, 0xA9, 0xFF, 0x52, 0x10, 0x9B, 0x33, 0x49, 0x35, 0x9B, 0x00, 0x00, 0x68, 0xEF}
#define LBS_UUID_SERVICE 0x0300
#define LBS_UUID_BUTTON_CHAR 0x0302
#define LBS_UUID_LED_CHAR 0x0301
this is regarding the " ble_app_multilink_central " example found in the SDK.
With these changes I can read the button state from the Thingy52, although I can't write LED values to the Thingy52 yet. I think that has to do with the data size in the following function uint32_t ble_lbs_led_status_send(ble_lbs_c_t * p_ble_lbs_c, uint8_t status)
code in "ble_lbs_c.c"