9dbf9be428
Simplify MQTT messaging
...
Simply add the entire mosquitto message as a JSON entity, not a string.
The simple case now looks like:
"mqtt": [ {"topic": "/s/cmnd/5C:CF:7F:20:29:6E/Power", "message": "On"} ]
Sending an RPC to Mongoose OS looks like:
"mqtt": [ {"topic": "esp32_XXXXXX/rpc/Button.Touch", "message": {"args": {"idx":0}}} ]
2018-01-02 00:20:15 +01:00
44a84dd1bc
Fix some compiler lint for esp8266
2017-12-21 22:38:23 +01:00
7c3f699275
Make widgets span the get_screenWidth() value
2017-12-07 00:00:13 +01:00
fae52bb543
Add MQTT buttons!
2017-12-02 23:34:16 +01:00
b8e5637c8b
First start of MQTT buttons
2017-12-02 16:51:09 +01:00
cda842da53
Implement EV_WIDGET_DRAW and call screen_widget_broadcast() on screen loads
2017-12-02 14:23:14 +01:00
ef4451b81f
Initial stab at WIDGET_LOADSCREEN and navigation
2017-12-02 14:15:22 +01:00
c3a71a9b69
Add widget_default_destroy()
2017-12-02 13:33:51 +01:00
4e1a9f4c2a
Change images to DIFs for faster drawing
2017-12-02 12:22:14 +01:00
b9a0578d5b
Allow app to compile for ESP8266 - add some conditionals based on mos.platform
2017-12-01 19:21:01 +01:00
95e2835871
Draw images as blue roundrects; Add labels to non-imagery widgets, if they are set
2017-12-01 16:16:57 +01:00
e7f674fa6f
Show the use of multiple fonts
2017-12-01 15:43:03 +01:00
eab5f31a92
Move to Native SPI implementations of ILI9341 and STMPE610
2017-12-01 13:57:43 +01:00
ed9906a0bf
Move to RoundRect() -- draw RED on TOUCH_DOWN, GREEN on TOUCH_UP
2017-11-26 22:23:35 +01:00
ed98d2de7c
Trigger draw on TOUCH_UP
2017-11-26 22:13:49 +01:00
25cad76432
Move to PNG imagery
2017-11-26 21:04:58 +01:00
d5e01dedd2
Simplify screen: make it absolute and fill the whole TFT
2017-11-26 20:07:26 +01:00
3cb5fc18e7
add widget_ev_to_str(); Pass 'ed' through to EV_WIDGET_TOUCH_{UP,DOWN} calls
2017-11-26 19:27:57 +01:00
e826324244
Plumb default_widget_handler and default_user_data for widgets read from JSON/File
2017-11-26 19:06:44 +01:00