Hello
Up to now I was using an Arduino Uno Wifi to receive httrequest from a smartphone. The target is to receive commands to guide a robotic platform. Sample : httprequest sent by the smartphone : 192.168.0.99/FWD > FWD = command to move forward.
I want to replace this Arduino Uno Wifi with Dfrobot WiFi Shield
The shield seems to work, I can enter web interface and set static ip adress. But I don't find any sample code, or library for this shield. And of course the code used for the Arduino Uno Wifi is not working. I must add that I'm not an expert in this field.
Is it a bad choice and it's better to send it back to the shop or is there a solution to make it work ?
Thanks for your suggestions
This is the code used for the Arduino Uno Wifi :
#include <SoftwareSerial.h>// import the serial library
#include <stdio.h> /* printf */
#include <stdlib.h> /* strtol */
#include <Wire.h> // Pour afficheur Oled
#include <ArduinoWiFi.h>
char txc[20];
String readString;
void setup()
{ //======= Pour réception commandes en WIFI =============================
Serial.begin(9600);
Serial.println("Setup");
Wifi.begin();
readString = "";
Serial.println("Arduino Wifi Started");
}
void loop()
{
while(Wifi.available()){proc1(Wifi);}
}
void proc1(WifiData client) {
String command = client.readStringUntil('/');
readString = client.readStringUntil('/');
Serial.print("Chaîne recue : ");
Serial.println(readString);
client.println("Status: 200 OK\n");
}