Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Network issue #92

Open
lekrom opened this issue Jun 18, 2021 · 5 comments
Open

Network issue #92

lekrom opened this issue Jun 18, 2021 · 5 comments

Comments

@lekrom
Copy link
Contributor

lekrom commented Jun 18, 2021

I am unable to connect BM to my wifi network. After connecting, the sys reboots and displays the last 5 digits of its IP adress. (Nothing else on the LCD).
I managed to briefly connect to it via my wifi but it hangs and reboots before the page is done loading.

In AP mode only, the web interface works perfectly.

@lekrom
Copy link
Contributor Author

lekrom commented Jun 26, 2021

I hooked up the serial monitor to see investigate issue, this is what it spits out (SSID and Passw redacted):
`File System begin() Success
read 166 bytes:{"host":"bm","user":"brewmaniac","pass":"rdwhahb!","secured":0,"ip":"0.0.0.0","gw":"0.0.0.0","nm":"0.0.0.0","ap":0,"ssid":"XXXXX","stapass":"XXXXXX"}
hostname:bm, user:brewmaniac, pass:rdwhahb!, secured:0
load:"{"rest_tm":[1,30,60,30,0,0,0,10],"rest_tp":[41.9,40,60,70,0,0,0,75],"boil":60,"hops":[60,10]}"
NO HS session
loadSensorSetting
Sensor: addr:112, 0x28FF62D16116047D
Sensor: addr:120, 0x28FF6BDC02170315
Sensor: addr:128, 0xFF00000000000000
invalid sensor address! 6Number of sensors:2
scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 7
cnt

connected with XXXXXXX channel 8
dhcp client start...
ip:192.168.101.110,mask:255.255.255.0,gw:192.168.101.1
delay
gButtonPressed=0
gButtonPressed=0
gButtonPressed=0
begin:: 3 ,SSID:XXXXXX pass:XXXXXXX IP:192.168.101.110, gw:192.168.101.1

AP_STA mode
scandone

create network:bm pass:rdwhahb!
Connected! IP address: 192.168.101.110HTTP server started
HTTP Update server started

Set sensor for 0, P:0, Aux:1
local IP: 192.168.101.110End Setup
Sensor disconneced!
Sensor disconneced!
Sensor disconneced!
Sensor disconneced!
Sensor disconneced!
Sensor disconneced!
Sensor disconneced!`

@lekrom
Copy link
Contributor Author

lekrom commented Jun 26, 2021

In AP only mode, all works fine. So not a real sensor issue as reported.

@lekrom
Copy link
Contributor Author

lekrom commented Jul 2, 2021

Hi @vitotai
Its seems to go wrong at the last step in the setup() routine, Line 1590 in BrewManiacex.cpp
displayIP(WiFiSetup.isApMode());
If I comment this line out, all works as expected.

@vitotai
Copy link
Owner

vitotai commented Jul 3, 2021

I don't understand how could it be.
That function just displays IP on LCD.

@Malord958
Copy link

I have had this issue in version 0.5.1 only with 12-digit IP addresses (for example 192.168.123.123)
with an IP address of 11 digits (192.168.123.12) there is no problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants