56: BLE Scan
Header
| Field | Name | Description | Type |
|---|---|---|---|
| 5 | Method | Request a service to be perform an action Possible values:
| uint8 |
Payload
| Field | Name | Description | Type | Unit |
|---|---|---|---|---|
| 1 | Advertising Data | bytes | ||
| 2 | MAC | MAC Address of the access point, as 6 bytes | bytes | |
| 3 | RSSI | Signal strength | int8 | |
| 4 | Name | Device name, if available | ascii |
Examples
Subscribe to BLE scan results
📡 Real example from RH2 P1 v2296 on 2025-10-14This example is captured from an RH2 device as part of normal communications over I2C with the ESP32 co-processor, where P1 subscribes to BLE scan results from Toit on the ESP32.
BLE scan result
📡 Real example from RH2 ESP32 Toit on 2025-10-14This example is captured from an RH2 device as part of normal communications over I2C with the ESP32 co-processor, after BLE scan results were subscribed to from P2, and a BLE device was found, sent back to P1.
Code
For convenience, the following constants can be used to reference this message type.