
# Send an SMS outbound immediately
sushi.cmd("send_sms", ("Alarm: High temperature detected!", "+39XXXXXXXXXX"))
# Perform asynchronous HTTP requests (GET & POST) in a single line
sushi.cmd("http_get", ("https://api.example.com/status", 5000))
sushi.cmd("http_post", ("https://api.example.com/data", '{"temp": 23.5}', "application/json"))
# Control system hardware without knowing the GPIO pin
sushi.cmd("set_out_state", ("RELAY_1", 1))
# Create an interactive item on the physical LCD menu
menu.add_enum_editable_item("Relay Status", on_relay_toggle, 0, "OFF", "ON")
# Handle incoming Web Server requests in just a few lines
def web_cb(args):
# Only managed paths return a tuple
if args[1] == "/api/toggle": return (200, "OK" , "text/plain")
sushi.cmd("set_webserver_hnd", web_cb)Applications
- Edge computing hubs
- Student experiments
- Fast prototyping
- Home automation systems
- IoT hubs
- Alarm systems
- Domotics servers
- Remote monitoring and data logging systems (e.g., weather stations)
- Local and remote control systems (via local interface, web interface, or modem)
Manages all essential components typically present in an IoT system, regardless of the specific application:
- Physical interface management (keyboard, display, status LEDs)
- Wireless connection as client or access point
- Drivers for all hardware components present on the board (I/O expander, modem, etc.)
- Web interface with user-level access (web server and UI)
- Modular menu management for physical interface with keyboard and screen
- High-level MicroPython API for many typical functions: HTTP requests, SMS, GSM calls, web server extension, menu integration, I2C communication, etc.
Credits
This project embeds MicroPython, a lean and efficient implementation of Python 3 optimized for microcontrollers. Very thanks to the MicroPython developers and contributors for their outstanding work.
Marco


x-labz
Roman
JP Gleyzes
John