ESP8266 ne se connecte pas au Wifi et à ArduinoIoTCloud

ESP8266 ne se connecte pas au Wifi et à ArduinoIoTCloud

je suis a un stade ou j'utilise juste le code proposer par l'IDE en ligne pour créer le code de connexion au Wifi et à ArduinoIoTCloud, la réussite de connexion est très rare..!

si je gère moi même mes connexion Wifi pour du code iot perso pour communiquer à Domoticz ou pour me connecter à Blink je n'ai aucun soucis de connexion (le hard de mon ESP8266 et la borne Wifi ne pose pas de problème.

qui a rencontré ce genre de soucis et trouver la cause ?

merci d'avance de votre réponse

voici le code donner par l'interface web :

#include "thingProperties.h"

float kV = 3.3 / 1024.0;
float kGauge = 100.0 / 3.3;

void setup() {
  // Initialize serial and wait for port to open:
  Serial.begin(115200);
  // This delay gives the chance to wait for a Serial Monitor without blocking if none is found
  delay(1500); 

  // Defined in thingProperties.h
  initProperties();

  // Connect to Arduino IoT Cloud
  ArduinoCloud.begin(ArduinoIoTPreferredConnection);
  
  /*
     The following function allows you to obtain more information
     related to the state of network and IoT Cloud connection and errors
     the higher number the more granular information you’ll get.
     The default is 0 (only errors).
     Maximum is 4
 */
  setDebugMessageLevel(2);
  ArduinoCloud.printDebugInfo();

  pinMode(LED_BUILTIN, OUTPUT);
}

void loop() {
  ArduinoCloud.update();
  // Your code here 
  
  iot_val = analogRead(A0) * kV;
  iot_gauge = iot_val * kGauge;
}

/*
  Since EtatLED is READ_WRITE variable, onEtatLEDChange() is
  executed every time a new value is received from IoT Cloud.
*/
void onEtatLEDChange()  {
  // Add your code here to act upon EtatLED change
  //  digitalWrite(LED_BUILTIN, etat_LED);  
}

/*
  Since IotGauge is READ_WRITE variable, onIotGaugeChange() is
  executed every time a new value is received from IoT Cloud.
*/
void onIotGaugeChange()  {
  // Add your code here to act upon IotGauge change
}
/*
  Since IotStr is READ_WRITE variable, onIotStrChange() is
  executed every time a new value is received from IoT Cloud.
*/
void onIotStrChange()  {
  // Add your code here to act upon IotStr change
}

/*
  Since IotVal is READ_WRITE variable, onIotValChange() is
  executed every time a new value is received from IoT Cloud.
*/
void onIotValChange()  {
  // Add your code here to act upon IotVal change
}

/*
  Since Bouton is READ_WRITE variable, onBoutonChange() is
  executed every time a new value is received from IoT Cloud.
*/
void onBoutonChange()  {
  // Add your code here to act upon Bouton change
  if(bouton) etat_LED = HIGH;
  else etat_LED = LOW;
  
    digitalWrite(LED_BUILTIN, etat_LED);
}


This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.