Skip to content

Network State Uplink Data

Shows whether WiFi, BLE, and MQTT are currently active/connected, and the detailed state of each named network.

Key path: devdata.net, devdata.network

To request current values:

{ "devdata": { "net": null } }

For each network defined in your configuration (e.g., k1, b1), the device reports its activation and connection state.

Configuration variables

  • active (boolean): true when the network is activated.
  • state (string, single character): current connection state.
CodeState
IIdle (not activated)
DDisconnected
TTrying to connect
CConnected
FConnection failed
{
"net": {
"k1": {
"active": true,
"state": "C"
},
"b1": {
"active": false,
"state": "I"
}
}
}

Shorthand booleans for the three main radio interfaces and MQTT.

Configuration variables

  • wifi.active (boolean): WiFi radio is on.
  • wifi.connected (boolean): WiFi is connected to an AP.
  • ble.active (boolean): nRF53 BLE is active.
  • bleperi.active (boolean): nRF52 BLE peripheral is active.
  • mqtt.connected (boolean): MQTT broker connection is established.
{
"wifi": {
"active": true,
"connected": true
},
"ble": {
"active": true
},
"bleperi": {
"active": true
},
"mqtt": {
"connected": true
}
}

These flags are sent automatically; no separate null request is required.