Skip to content

Payload Quick Reference

Fields from the payload contract
JSON schema for telemetry (`type=connectivity`) and event (`type=button`, `event=press`) MQTT messages.
for MQTT
Message Queuing Telemetry Transport — lightweight publish/subscribe protocol used between ESP32 and AWS IoT Core.
telemetry and events:

Field NameData TypeExample Value
device_idstringesp32-c
tsinteger (epoch seconds)1782117400

type (telemetry)

stringconnectivity
rssiinteger (dBm)-54
uptime_sinteger (seconds)73987
heap_freeinteger (bytes)244916
chip_temp_cnumber (Celsius)29.5
chip_modelstringESP32-S3
cpu_mhzinteger240
flash_bytesinteger (bytes)16777216
wifi_ssidstringyour-wifi-ssid
wifi_statusinteger

3 (connected)

wifi_channelinteger10
wifi_ipstring (IPv4)192.168.12.2
wifi_gatewaystring (IPv4)192.168.12.1
wifi_dnsstring (IPv4)192.168.99.1
clock_offset_msinteger (milliseconds)-62

type (event)

stringbutton
eventstringpress