Hello,
I have a Arduino Uno Wifi Card. I have flashed the firmware following this
procedure The Wi-Fi connection is working now.
But when I try to read data from IC2 sensor (a thermal one in my case), the connection to Serial1 seems to be frozen.
Here is a part of my code :
#include <TH02_dev.h>
#include "Arduino.h"
#include "Wire.h"
#include <UnoWiFiDevEdSerial1.h>
#include "WiFiEsp.h"
char ssid[] = "xxxxx"; // your network SSID (name)
char pass[] = "xxxxx"; // your network password
int status = WL_IDLE_STATUS; // the Wifi radio's status
int k=0;
char postmsg[100];
// Initialize the Ethernet client object
WiFiEspClient client;
void setup()
{
// initialize serial for debugging
Serial.begin(115200); //115200
Serial.println("****Setup TH02****\n");
/* Thermal sensor Reset HP20x_dev */
TH02.begin();
delay(100);
float temper = TH02.ReadTemperature();
Serial.println("Temperature: ");
Serial.print(temper);
Serial.println("C\r\n");
// initialize serial for ESP module
Serial.println("****Setup ESP module****\n");
Serial1.begin(115200);
// initialize ESP module
WiFi.init(&Serial1);
Serial1.overflow(); // clear the flag. after reset in init esp overflows buffer with boot log
Serial.println("****Begin Setup****\n");
// check for the presence of the shield
if (WiFi.status() == WL_NO_SHIELD) {
Serial.println("WiFi shield not present");
// don't continue
while (true);
}
I'm not sure to understand the section "I2C a.k.a. Wire a.k.a. TWI" of the readme of the git hub page :
UNO WiFi (Developer Edition) Serial1.
Is I2C protocol working on this board?
Thanks in advance for helping me.
Regrads
Emile