répondre a des questions sur ESP8266 & Arduino ??
Merci
Am 19.06.22 um 15:25 schrieb zeneca:
répondre a des questions sur ESP8266 & Arduino ??
Merci
Don't believe one will do in French :(OK, let's try
___
Regards
JJenssen
Am 19.06.22 um 15:25 schrieb zeneca:
répondre a des questions sur ESP8266 & Arduino ??
Merci
Don't believe one will do in French :(
On 20-06-2022 12:28, zeneca wrote:
struct netw
{
char *MXWifi;/*ssid*/
char *YYYZY; /*passwd*/
const char *MyIp; /*ip adress*/
struct netw *next;
};
struct netw prem = {"AAACCCCCC","xvdfgghs","192,168,1,32"};
struct netw seco = {"Orange-aaa","7XyZzR","192,168,0,32"};
[...]
Compilation fail on current->MyIP
Doesn't' accept 198,162... nor 198.162...
Type IPAdress seem to only accept:
#define MYIpad 192,168,0,32
I have never seen anything using commas in IP addresses instead of
periods. It is not an arithmatic number, so those are not decimal
points, so I can't imagine anyone, ever, anywhere needing to translate periods to commas or vice versa in IP addresses. If your library does do that, I'd be looking for a different library.
struct netw
{
char *MXWifi;/*ssid*/
char *YYYZY; /*passwd*/
const char *MyIp; /*ip adress*/
struct netw *next;
};
struct netw prem = {"AAACCCCCC","xvdfgghs","192,168,1,32"};
struct netw seco = {"Orange-aaa","7XyZzR","192,168,0,32"};
[...]
Compilation fail on current->MyIP
Doesn't' accept 198,162... nor 198.162...
Type IPAdress seem to only accept:
#define MYIpad 192,168,0,32
It is actually how they do it: https://www.arduino.cc/reference/en/libraries/ethernet/ipaddress/
however it's a constructor which accepts four arguments, being the four 8
bit chunks of the IPv4 address: https://github.com/esp8266/Arduino/blob/master/cores/esp8266/IPAddress.h#L70 https://github.com/esp8266/Arduino/blob/master/cores/esp8266/IPAddress.cpp#L38
Hence you can do:
IPAddress alice(127,0,0,1);
répondre a des questions sur ESP8266 & Arduino ??
Merci
Dana Sun, 19 Jun 2022 15:25:52 +0200, zeneca <pasIci@ailleur.fr> napis'o:Interesting, I will have a try.
répondre a des questions sur ESP8266 & Arduino ??_IP(
Merci
As this is for PI which uses Linux, you should look at: https://arduino-esp8266.readthedocs.io/en/latest/esp8266wifi/station-examples.html
And look at WiFiMulti.
On Tue, 21 Jun 2022 14:40:22 +0200, zeneca wrote:
Le 21/06/22 à 13:52, Nikolaj Lazic a écrit :examples.html
Dana Sun, 19 Jun 2022 15:25:52 +0200, zeneca <pasIci@ailleur.fr>
napis'o:
répondre a des questions sur ESP8266 & Arduino ??_IP(
Merci
As this is for PI which uses Linux, you should look at:
https://arduino-esp8266.readthedocs.io/en/latest/esp8266wifi/station-
And look at WiFiMulti.Interesting, I will have a try.
But the problem I a facing is my local provider doesnt give fixed ip
address. So I have to give IPAdresse local_IP(MyIpAd);
MyIpAd is #define 192,168,0,111 in another file.I think
Regards
Run a local DNS (named, kea or knot) - I'm running named.
Set it up to be authoritative for your local LAN and to pass all other requests to the global root DNS servers.
Le 21/06/22 à 13:52, Nikolaj Lazic a écrit :
Dana Sun, 19 Jun 2022 15:25:52 +0200, zeneca <pasIci@ailleur.fr>Interesting, I will have a try.
napis'o:
répondre a des questions sur ESP8266 & Arduino ??_IP(
Merci
As this is for PI which uses Linux, you should look at:
https://arduino-esp8266.readthedocs.io/en/latest/esp8266wifi/station- examples.html
And look at WiFiMulti.
But the problem I a facing is my local provider doesnt give fixed ip
address. So I have to give IPAdresse local_IP(MyIpAd);
MyIpAd is #define 192,168,0,111 in another file.
Regards
struct netw
{
char *MXWifi;/*ssid*/
char *YYYZY; /*passwd*/
const char *MyIp; /*ip adress*/
struct netw *next;
};
#define MYIpad 192,168,0,32
I think I will start a HOTSPOT on a Raspberry (maybe a Zero ) with
dnsmask (dns and DHCP ) it also une local host table, and so be rid of
the problem. But I need to use an extra system for this wich is...
The Raspberry should have a second ethernet access
On Tue, 21 Jun 2022 14:40:22 +0200, zeneca wrote:
Le 21/06/22 à 13:52, Nikolaj Lazic a écrit :
As this is for PI which uses Linux, you should look at:Interesting, I will have a try.
https://arduino-esp8266.readthedocs.io/en/latest/esp8266wifi/station- examples.html
And look at WiFiMulti.
But the problem I a facing is my local provider doesnt give fixed ip address. So I have to give IPAdresse local_IP(MyIpAd);
MyIpAd is #define 192,168,0,111 in another file.
Regards
Run a local DNS (named, kea or knot) - I'm running named.
Set it up to be authoritative for your local LAN and to pass all other requests to the global root DNS servers.
répondre a des questions sur ESP8266 & Arduino ??
Merci
Le 21/06/22 à 13:52, Nikolaj Lazic a écrit :
Dana Sun, 19 Jun 2022 15:25:52 +0200, zeneca <pasIci@ailleur.fr> napis'o: >>> répondre a des questions sur ESP8266 & Arduino ??_IP(Interesting, I will have a try.
Merci
As this is for PI which uses Linux, you should look at:
https://arduino-esp8266.readthedocs.io/en/latest/esp8266wifi/station-examples.html
And look at WiFiMulti.
But the problem I a facing is my local provider doesnt give fixed ip
address. So I have to give IPAdresse local_IP(MyIpAd);
MyIpAd is
#define 192,168,0,111 in another file.
Le 21/06/22 à 15:45, Martin Gregorie a écrit :
On Tue, 21 Jun 2022 14:40:22 +0200, zeneca wrote:I think I will start a HOTSPOT on a Raspberry (maybe a Zero ) with
Le 21/06/22 à 13:52, Nikolaj Lazic a écrit :examples.html
Dana Sun, 19 Jun 2022 15:25:52 +0200, zeneca <pasIci@ailleur.fr>
napis'o:
répondre a des questions sur ESP8266 & Arduino ??_IP(
Merci
As this is for PI which uses Linux, you should look at:
https://arduino-esp8266.readthedocs.io/en/latest/esp8266wifi/station-
And look at WiFiMulti.Interesting, I will have a try.
But the problem I a facing is my local provider doesnt give fixed ip
address. So I have to give IPAdresse local_IP(MyIpAd);
MyIpAd is #define 192,168,0,111 in another file.I think
Regards
Run a local DNS (named, kea or knot) - I'm running named.
Set it up to be authoritative for your local LAN and to pass all other
requests to the global root DNS servers.
dnsmask (dns and DHCP ) it also une local host table, and so be rid of
the problem. But I need to use an extra system for this wich is...
The Raspberry should have a second ethernet access (cable or a second
wlan? looking for a Raspberry zero 2wh )
Sysop: | Weed Hopper |
---|---|
Location: | Clearwater, FL |
Users: | 14 |
Nodes: | 6 (0 / 6) |
Uptime: | 231:11:39 |
Calls: | 55 |
Calls today: | 1 |
Files: | 50,127 |
D/L today: |
29 files (3,538K bytes) |
Messages: | 275,355 |