Firmware  0.7.1
Loading...
Searching...
No Matches
mw::disp Namespace Reference

Functions

 TASK (task, "mw::disp", 4096uz, tskIDLE_PRIORITY, APP_CPU_NUM, 1000u)
esp_err_t init ()
 Initialize display.
void task_function (void *)
 Display telemetry task.

Function Documentation

◆ init()

esp_err_t mw::disp::init ( )

Initialization takes place in init(). This function configures UART_NUM_0 with 115200 baud, installs the UART driver (RX/TX software buffers, 1024 bytes each), assigns default UART0 TX/RX pins, and starts the display task running task_function().

◆ TASK()

mw::disp::TASK ( task ,
"mw::disp" ,
4096uz ,
tskIDLE_PRIORITY ,
APP_CPU_NUM ,
1000u  )
inline

◆ task_function()

void mw::disp::task_function ( void * )

This task periodically emits a JSON status frame over UART_NUM_0 when the display extension is enabled.

The payload contains:

  • firmware version
  • IP
  • State
  • SSID
  • mDNS
  • RSSI
  • Voltage
  • Current