Hello
I'm working on a robotic project using an Arduino Uno Wifi. This board is used to receive commands from a tablet or laptop. The received commands are sent via I2C to an Arduino Mega which drives motors... I use http request to send commands : //192.168.43.132/arduino/digital/F1/
I like this board because it is simple to operate : connect to his interface 192.168.240.1. Select Wifi network. Upload the code below and it is ready to receive and transmit data.
I would like to purchase a second board but unfortunately this board is not available any more...
Is there an alternative ? As simple, as efficient as the Arduino Uno Wifi for a guy who is not an Arduino specialist and who is afraid to spend a lot of hours to understand how to configure a new board ?
Thanks for your suggestions.
void loop()
{
while(Wifi.available()){proc1(Wifi);}
}
void proc1(WifiData client) {
String command = client.readStringUntil('/');
if (command == "digital") {
readString = client.readStringUntil('/');
tx1(readString);
client.println("Status: 200 OK\n");
}
}
// ====== Send command to Arduino Mega
void tx1(String data)
{ data.toCharArray(txc, 17);
Wire.beginTransmission(4);
Serial.println(txc);
Wire.write(txc); //
Wire.endTransmission();
}