Repository navigation
Releases
Releases · maxwelltrack/maxwelltrack-arduino
MaxwellTrack 1.4.0
- Security: over WiFi the device now connects only after the server proves it
is the MaxwellTrack cloud; the cloud's public root certificates are built in,
so nothing needs setting up. ESP8266 and Pico W set their clock from the
internet first (certificate dates are checked against it), so their network
must allow time requests.setRootCA()still replaces the roots for a private
deployment. - Security: firmware updates are signed. A board installs only an image signed
by MaxwellTrack and keeps its current firmware otherwise; the dashboard shows
"bad signature". Boards on earlier versions keep receiving updates as before. - Local rules: set up on the device page in the console (Controller tab), the
board runs them on its own, with or without network. A rule watches a
reading and sets an output after a hold time, with a deadband on the way
back; it can stay tripped until it is reset, and it can refuse remote
commands to its output while tripped. A network-loss rule puts outputs in a
safe state when the board has been offline for a set time. Local rules do
not replace hardwired safety devices. - Modbus RTU equipment on an RS-485 port:
useModbus(port, dePin). Meters,
drives and controllers, their registers, word order, scale and reporting are
chosen in the console; the board reads them and reports a reading when it
changes by its deadband, and at least every few minutes. A unit that stops
answering is shown in the console, and "Find equipment" lists the addresses
that answer. Writable registers follow dashboard controls. - Rules and equipment are kept in flash, so the board keeps running them after
a power cut without network (ESP32, ESP8266, STM32, Raspberry Pi Pico, Mega;
Arduino Zero takes them again from the cloud when it connects). - Cameras:
sendImage(jpeg, len)sends a picture from an ESP32 camera board
over the device's own cloud connection, andonCameraRequest(handler)is
called when someone opens live view or presses Take picture in the console.
The dashboard's Image widget shows the latest picture and the ones before it,
the Video widget shows live view. Live view runs only while someone watches,
so a camera nobody looks at sends only its scheduled pictures. New example
06.Camera/Camera for the AI Thinker ESP32-CAM, ESP32-S3-EYE, XIAO ESP32S3
Sense, ESP-EYE and M5Stack Camera. - Readings sent from the offline buffer carry their age, so the dashboard shows
them at the time they were measured. - A board that restarts quickly no longer risks a reading being taken for one
it already sent. - Uno and Blue Pill: unchanged (no room for local rules or equipment).
- New boards: Arduino UNO R4 Minima, UNO R4 WiFi and Nano R4. The UNO R4
WiFi, MKR WiFi 1010, Nano 33 IoT and Raspberry Pi Pico W / Pico 2 W connect
over WiFi with the same sketch as an ESP32:begin(id, token, ssid, pass).
They rejoin WiFi on their own without pausing the sketch, so local rules
keep running while WiFi is down, and open networks work too. The UNO R4
Minima and Nano R4 connect through a cellular modem on pins 0 and 1. All
three keep local rules and Modbus equipment in flash, and are updated over
USB. - UNO R4 WiFi and the MKR WiFi 1010 / Nano 33 IoT check the cloud's
certificate with their WiFi module's own list of trusted roots.
setRootCA()works on the UNO R4 WiFi and Pico W as on ESP32. - Uno and Mega: the library takes about 1 KB less flash, leaving more room
for your own code. - WiFi setup from a phone: joining the device's setup network now opens a
setup page by itself (or open http://192.168.4.1). No app needed. - ESP8266: saving WiFi from the phone no longer erases local rules.
- ESP32 with a SIM7600: an SMS or other modem command sent by the sketch is no
longer answered with a leftover reply from the cloud connection. - Examples: SecureConnection now shows how to use your own roots for a private
deployment (ESP32, ESP8266, UNO R4 WiFi, Pico W); the SIM800 example uses safe pins on ESP32 and Pro Mini; the
Modbus example runs on ESP32-S2/C3/C6; WiFi failover keeps local rules
running while WiFi is down.
MaxwellTrack 1.3.1
- Over-the-air updates (ESP32, ESP8266) report their progress to the
dashboard: received, downloading with a percentage, restarting, and the
reason when an update cannot be installed. - Over-the-air updates download faster over WiFi.
- ESP8266: over-the-air updates no longer fail with "connection failed". The
board does not have the memory for two secure connections at once, so its
cloud connection now pauses during the download and reconnects afterwards. - ESP32 over a cellular modem (SIM800C/L, SIM900, SIM7000/7080, SIM7600,
A7670, Quectel BG95/BG96 and other TinyGSM modems): an update that stalls on
a weak signal now continues from where it stopped instead of starting over. - Raspberry Pi Pico and Pico 2 now update over the air through their modem.
The board needs a file system area for the update (Arduino IDE: Tools >
Flash Size with an FS; PlatformIO:board_build.filesystem_size). - Every update is checked against its checksum before the board switches to it,
and an update that arrives without one is refused. - The firmware version shown in the dashboard is set with
MAXWELLTRACK_FW_VERSION(define it before the include) or a
maxwelltrack_version.hfile on the include path.
MaxwellTrack 1.3.0
- One library to install: no separate helper library is needed anymore.
- Available in the Arduino IDE Library Manager.
- Removed the old name of
connectionState().