Skip to content

Setting HqHandler::host to an IP address doesn't seem to take #6

Open
@amcjen

Description

@amcjen

Setting the host to an IP address in HqInfo.cpp:

const char HqHandler::host[] = "10.0.1.100";

And reflashing a lead scout results in NAUTO switching from it, to 0.0.0.0 then to 127.0.0.1

Hello from Pinoccio!
 (Shell based on Bitlash v2.0 (c) 2014 Bill Roy)
 14562 bytes free
 Build 2014031201
 Lead Scout ready
> wifi.status
Wi-Fi Versions: S2W APP VERSION=2.5.1
S2W GEPS VERSION=2.5.1
S2W WLAN VERSION=2.5.1
MAC=20:f8:5e:a1:49:d0
WSTATE=NOT CONNECTED    MODE=NONE 
BSSID=00:00:00:00:00:00   SSID="" CHANNEL=NONE   SECURITY=NONE
RSSI=0
IP addr=0.0.0.0   SubNet=0.0.0.0  Gateway=0.0.0.0
DNS1=0.0.0.0       DNS2=0.0.0.0
Rx Count=0     Tx Count=0 
 No valid Cids
> wifi.status
Wi-Fi Versions: S2W APP VERSION=2.5.1
S2W GEPS VERSION=2.5.1
S2W WLAN VERSION=2.5.1
MAC=20:f8:5e:a1:49:d0
WSTATE=NOT CONNECTED    MODE=NONE 
BSSID=00:00:00:00:00:00   SSID="" CHANNEL=NONE   SECURITY=NONE
RSSI=0
IP addr=0.0.0.0   SubNet=0.0.0.0  Gateway=0.0.0.0
DNS1=0.0.0.0       DNS2=0.0.0.0
Rx Count=0     Tx Count=0 
 No valid Cids
> wifi.command("AT&V")
ACTIVE PROFILE
C0 &Y0 E0 V0 &K1 CPL0 CPH0
+NDHCP=1 +NSET=192.168.1.99,255.255.255.0,192.168.1.1
+DNS1=0.0.0.0, +DNS2=0.0.0.0
+WM=0 +WAUTO=0,"Pinoccio",,
+WRETRY=5 +WP=0 +WRXPS=1 +WRXACTIVE=0
+NAUTO=0,1,10.0.1.100,22757
+WAUTH=0 +WWPA="***"+PSK-valid=0 +SSID=
+WWEP1=1234567890 +WWEP2=
+WWEP3= +WWEP4=
S0=01000 S1=00500 S2=00500 S3=00003 S4=00010 S5=00150 S6=01000 S7=00000
+BDATA=1  +WSEC=0  +ASYNCMSG=1 
STORED PROFILE 0
E0 V0 &K1 CPL0 CPH0
+NDHCP=1 +NSET=192.168.1.99,255.255.255.0,192.168.1.1
+DNS1=0.0.0.0, +DNS2=0.0.0.0
+WM=0 +WAUTO=0,"Pinoccio",,
+WRETRY=5 +WP=0 +WRXPS=1 +WRXACTIVE=0
+NAUTO=0,1,0.0.0.0,22757
+WAUTH=0 +WWPA="***"+PSK-valid=0 +SSID=
+WWEP1=1234567890 +WWEP2=
+WWEP3= +WWEP4=
S0=01000 S1=00500 S2=00500 S3=00003 S4=00010 S5=00150 S6=01000 S7=00000
+BDATA=1  +WSEC=0  +ASYNCMSG=1 
> wifi.status
Wi-Fi Versions: S2W APP VERSION=2.5.1
S2W GEPS VERSION=2.5.1
S2W WLAN VERSION=2.5.1
MAC=20:f8:5e:a1:49:d0
WSTATE=CONNECTED     MODE=AP 
BSSID=90:84:0d:d6:8f:ab   SSID="Pinoccio" CHANNEL=11   SECURITY=WPA2-PERSONAL
RSSI=-60
IP addr=10.0.1.114   SubNet=255.255.255.0  Gateway=10.0.1.1
DNS1=10.0.1.1       DNS2=0.0.0.0
Rx Count=18     Tx Count=925 
 No valid Cids
> wifi.status
Wi-Fi Versions: S2W APP VERSION=2.5.1
S2W GEPS VERSION=2.5.1
S2W WLAN VERSION=2.5.1
MAC=20:f8:5e:a1:49:d0
WSTATE=CONNECTED     MODE=AP 
BSSID=90:84:0d:d6:8f:ab   SSID="Pinoccio" CHANNEL=11   SECURITY=WPA2-PERSONAL
RSSI=-60
IP addr=10.0.1.114   SubNet=255.255.255.0  Gateway=10.0.1.1
DNS1=10.0.1.1       DNS2=0.0.0.0
Rx Count=18     Tx Count=1091 
 No valid Cids
> wifi.command("AT&V")
ACTIVE PROFILE
C0 &Y0 E0 V0 &K1 CPL0 CPH0
+NDHCP=1 +NSET=192.168.1.99,255.255.255.0,192.168.1.1
+DNS1=0.0.0.0, +DNS2=0.0.0.0
+WM=0 +WAUTO=0,"Pinoccio",,
+WRETRY=5 +WP=0 +WRXPS=1 +WRXACTIVE=0
+NAUTO=0,1,127.0.0.1,22757
+WAUTH=0 +WWPA="***"+PSK-valid=1 +SSID=Pinoccio
+WWEP1=1234567890 +WWEP2=
+WWEP3= +WWEP4=
S0=01000 S1=00500 S2=00500 S3=00003 S4=00010 S5=00150 S6=01000 S7=00000
+BDATA=1  +WSEC=0  +ASYNCMSG=1 
STORED PROFILE 0
E0 V0 &K1 CPL0 CPH0
+NDHCP=1 +NSET=192.168.1.99,255.255.255.0,192.168.1.1
+DNS1=0.0.0.0, +DNS2=0.0.0.0
+WM=0 +WAUTO=0,"Pinoccio",,
+WRETRY=5 +WP=0 +WRXPS=1 +WRXACTIVE=0
+NAUTO=0,1,0.0.0.0,22757
+WAUTH=0 +WWPA="***"+PSK-valid=0 +SSID=
+WWEP1=1234567890 +WWEP2=
+WWEP3= +WWEP4=
S0=01000 S1=00500 S2=00500 S3=00003 S4=00010 S5=00150 S6=01000 S7=00000
+BDATA=1  +WSEC=0  +ASYNCMSG=1 
> 

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions