1

Topic: remoteXY et Arduino MKR1010

Bonjour, je n'arrive pas à connecter mon téléphone sur RemoteYX avec une carte Aduino MKR 1010. un message d'erreur s'affiche sur le téléphone "Error connection error failled ton connect to 192.168.4.1 (port6377) from / 192.168.4.2 (port 43130= after ...... connection refused "

merci d'avance du coup de main ;-)

Voici mon code
/* RemoteXY select connection mode and include library */
#include <SPI.h>      // SPI standard library
#include <WiFiNINA.h> // WiFiNINA module library v1.8.7

#define REMOTEXY_MODE__WIFI_POINT       // data transfer using wifi and open server with access point
//#define REMOTEXY__DEBUGLOGS Serial    // Enable RemoteXY debug message
#include <RemoteXY.h>                   // RemoteXY library v2.4.6 (modified)

/* RemoteXY connection settings */
#define REMOTEXY_WIFI_SSID "RemoteXY"
#define REMOTEXY_WIFI_PASSWORD "12345678"
#define REMOTEXY_SERVER_PORT 6377

// RemoteXY configurate 
#pragma pack(push, 1)
uint8_t RemoteXY_CONF[] =   // 159 bytes
  { 255,8,0,0,0,152,0,16,122,1,2,1,3,26,22,11,36,26,31,31,
  69,83,84,0,79,70,70,0,2,1,39,26,22,11,93,26,31,31,87,0,
  79,70,70,0,129,0,40,17,11,6,1,79,85,69,83,84,0,2,1,22,
  56,22,11,6,26,31,31,72,65,85,84,0,79,70,70,0,2,1,22,82,
  22,11,248,26,31,31,66,65,83,0,79,70,70,0,129,0,27,73,18,6,
  1,66,65,83,0,129,0,25,47,11,6,1,72,65,85,84,0,129,0,8,
  17,18,6,1,69,83,84,0,8,0,1,83,14,14,0,129,0,5,2,50,
  6,8,71,101,115,116,105,111,110,32,112,97,110,110,101,97,117,120,0 };
   

struct {

   
  uint8_t EST; // =1 if switch ON and =0 if OFF
  uint8_t OUEST; // =1 if switch ON and =0 if OFF
  uint8_t HAUT; // =1 if switch ON and =0 if OFF
  uint8_t BAS; // =1 if switch ON and =0 if OFF
  float compass_1; // from 0 to 359.999

    // other variable
  uint8_t connect_flag;  // =1 if wire connected, else =0

} RemoteXY;
#pragma pack(pop)

/////////////////////////////////////////////
//           END RemoteXY include          //
/////////////////////////////////////////////
#define PIN_EST 26
#define PIN_OUEST 27
#define PIN_HAUT 2
#define PIN_BAS 3


void setup()
{
  RemoteXY_Init ();
 
  pinMode (PIN_EST, OUTPUT);
  pinMode (PIN_OUEST, OUTPUT);
  pinMode (PIN_HAUT, OUTPUT);
  pinMode (PIN_BAS, OUTPUT);
 
   
}


void loop()
{
  RemoteXY_Handler ();
 
  digitalWrite(PIN_EST, (RemoteXY.EST==0)?LOW:HIGH);
  digitalWrite(PIN_OUEST, (RemoteXY.OUEST==0)?LOW:HIGH);
  digitalWrite(PIN_HAUT, (RemoteXY.HAUT==0)?LOW:HIGH);
  digitalWrite(PIN_BAS, (RemoteXY.BAS==0)?LOW:HIGH);
 
 


}

2

Re: remoteXY et Arduino MKR1010

WiFiNINA.h is not supported

3

Re: remoteXY et Arduino MKR1010

ok merci