2022-12-04, 10:54 PM
(2022-12-04, 09:35 PM)tjm Wrote: The sensors are controlled by Wemos D1 mini-controller, the program of the Wemos is coded by me in C using Platormio-IDE.
The libraries of the IDE establish the wifi connection, the connection function takes SSID and password as parameters.
sorry , I use micropython now, been a while since I used C. In micropython there's a command to set a fixed IP address. Just one line
self.sta_if.ifconfig((config["IP_Address"], '255.255.255.0', '10.10.10.1', '10.10.10.1'))
guessing it's likely the C library will have similar?