You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I've been using the Bluetooth Central_ht sample with a few changes (displaying data differently and changed uuids for my peripheral) and I only receive 7 "notifications" from the notify_func, although I am constantly sending data from the peripheral which is connected. after 7 notifications it doesn't disconnect or unsubscribe it just acts as if its not receiving any data. If i connect a different central to the peripheral I receive constant data as I should be.
I am using a microbit V1 for the BLE peripheral and a Microbit V2 as the BLE central. The code for the peripheral is .ino.
Does any one know why I am encountering this problem?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I've been using the Bluetooth Central_ht sample with a few changes (displaying data differently and changed uuids for my peripheral) and I only receive 7 "notifications" from the notify_func, although I am constantly sending data from the peripheral which is connected. after 7 notifications it doesn't disconnect or unsubscribe it just acts as if its not receiving any data. If i connect a different central to the peripheral I receive constant data as I should be.
I am using a microbit V1 for the BLE peripheral and a Microbit V2 as the BLE central. The code for the peripheral is .ino.
Does any one know why I am encountering this problem?
Changes I made to the Central_ht sample:
//Declaring Temp Service UUIDs
#define BT_UUID_TEMP_SERVICE_VAL 0xccc0 //declares uuid
#define BT_UUID_TEMP_SERVICE
BT_UUID_DECLARE_16(BT_UUID_TEMP_SERVICE_VAL) //creates 16 bit uuid
//Temperature reading characterisatic uuid
#define BT_UUID_CHARACTERISTIC_VAL 0xccc1
#define BT_UUID_TEMP_READING
BT_UUID_DECLARE_16(BT_UUID_CHARACTERISTIC_VAL)
And:
static uint8_t notify_func(struct bt_conn *conn,
struct bt_gatt_subscribe_params *params,
const void *data, uint16_t length)
{
}
Beta Was this translation helpful? Give feedback.
All reactions