report a url too

This commit is contained in:
2025-05-31 13:42:05 -06:00
parent 40844dd51b
commit 5f055976b0

View File

@ -19,10 +19,13 @@ extern uint32_t last_write_rate;
static const struct bt_data ad[] = { static const struct bt_data ad[] = {
BT_DATA_BYTES(BT_DATA_FLAGS, (BT_LE_AD_GENERAL | BT_LE_AD_NO_BREDR)), BT_DATA_BYTES(BT_DATA_FLAGS, (BT_LE_AD_GENERAL | BT_LE_AD_NO_BREDR)),
BT_DATA(BT_DATA_NAME_COMPLETE, CONFIG_BT_DEVICE_NAME, sizeof(CONFIG_BT_DEVICE_NAME) - 1), // -1 to strip \0
}; };
static unsigned char url_data[] = "\x17//brendanhaines.com";
static const struct bt_data sd[] = { static const struct bt_data sd[] = {
BT_DATA(BT_DATA_NAME_COMPLETE, CONFIG_BT_DEVICE_NAME, sizeof(CONFIG_BT_DEVICE_NAME) - 1), BT_DATA(BT_DATA_URI, url_data, sizeof(url_data) - 1), // -1 to strip \0
}; };
static void mtu_updated(struct bt_conn *conn, uint16_t tx, uint16_t rx) static void mtu_updated(struct bt_conn *conn, uint16_t tx, uint16_t rx)