| Deutsch English Français Italiano |
|
<t8pc4u$10pq$1@gioia.aioe.org> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!news.mixmin.net!aioe.org!tgTnqjlB+mH8wb8tQyid8Q.user.46.165.242.75.POSTED!not-for-mail
From: zeneca <pasIci@ailleur.fr>
Newsgroups: fr.sci.electronique
Subject: question sur nodemcu8266 / arduino
Date: Mon, 20 Jun 2022 10:46:17 +0200
Organization: Aioe.org NNTP Server
Message-ID: <t8pc4u$10pq$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="33594"; posting-host="tgTnqjlB+mH8wb8tQyid8Q.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.7.0
Content-Language: fr
X-Notice: Filtered by postfilter v. 0.9.2
Bytes: 1897
Lines: 49
Je voudrai faire en sorte que le système essaye de se connecter sur un
site WIFI selon une liste de SITE connu.
J'essaye cei sans succès (jusque maintenant)
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-aa","XyZyQR","192,168,0,32"};
struct netw *current;
dans setup()
IPAddress local_IP(MYIpad);
IPAddress gateway(MYGatew);
DoConnect();
dans
void Doconnect() {
while(1) {
Serial.println(current->MXWifi);
Serial.println(current->YYYZY);
Serial.println(current->MyIp);
// IPAddress local_IP(current->MyIp);
Serial.println("-------------------");
if (current->next != &prem) {
current = current->next;
} else {
current = &prem;
break;
}
}
La compilation ne veut pas de l'adresse ip.
Rien de ce que j'ai testé ne fonctionne!!
André