Published On May 11, 2023
Following on from getting CMRI / JMRI working over ethernet I thought I'd have a go at Wifi!
As explained in the video it was a little trickier and I didn't have a suitable Arduino board so used an ESP32 one. But the code shared below should be fully compatible with a Wifi enabled Arduino and does successfully compile for Arduino boards. The video includes a bit of a 'getting started' guide for ESP32s and the Arduino IDE.
Github repo with the code from the video https://github.com/Vintage80sModelRai...
The latest test release of JMRI, 5.3.6, includes the C/MRI bugfixes required to run this code, as listed in the release note https://www.jmri.org/releasenotes/jmr.... Download links are towards the bottom of this page.
URL for json file with info for Arduino IDE on locations for additional ESP32 boards - File - Preferences in IDE, paste this into 'Additional Boards Manager URLs' https://raw.githubusercontent.com/esp...
ESP boards (I don't have affiliate links so don't benefit from clicks)
https://www.amazon.co.uk/AZDelivery-N...
The solution I came up with relies heavily on Michael Adams' ArduinoCMRI work
https://github.com/madleech/ArduinoCMRI
Drivers for the ESP board if Windows doesn't automatically install them
https://www.silabs.com/developers/usb...
The code I used (hopefully I've remembered to remove my wireless key)
#modelrailways #modeltrains