55: WiFi 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 | SSID | SSID of the access point | ascii | |
| 2 | MAC | MAC Address of the access point, as 6 bytes | bytes | |
| 3 | RSSI | Signal strength of the access point | int8 | |
| 4 | Channel | WiFi channel of the access point | uint8 |
Examples
Subscribe to WiFi scan results
Protocol
3
3
Length
260
26 bytes
Type
550
55 (WiFi Scan)
Header Count
30
3
Header Types
571
5, 7, 1
Method
13
3 (SUBSCRIBE)
Duration
41361900
5000 Unit: ms
Message ID
4211700
2003
Payload Count
00
0
Checksum
138173
44426
📡 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 WiFi scan results from Toit on the ESP32.
WiFi scan result
Protocol
3
3
Length
480
48 bytes
Type
550
55 (WiFi Scan)
Header Count
20
2
Header Types
13
1, 3
Message ID
478100
334
Response to
4211700
2003
Payload Count
40
4
Payload Types
1234
1, 2, 3, 4
SSID
9668445656667495051
BT-ABC123
MAC
6228112858999
228,11,2,85,89,99
RSSI
1170
-86
Channel
111
11
Checksum
162180
46242
📡 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 WiFi scan results were subscribed to from P2, and a WiFi access point was found, sent back to P1.
Code
For convenience, the following constants can be used to reference this message type.