-
Notifications
You must be signed in to change notification settings - Fork 638
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
MQTT not appearing #1457
Comments
Maybe a problem in the web image? Are there any javascript errors in the browser? |
doesnt seem to be, if i flash the latest bin for lc02 i get every option in the menu... im i correct in thinking that if i was to compile the latest source with the hardware selected i should have mqtt default. i remove // before mqtt support in arduino.h and still same thing. |
MQTT is enabled by default in all builds. So you should have this. You can also check if you are receiving a |
I have similar problem with Schedule, ntp and Sensors menus - they are not showing - got 2 identical BW-SHP2 - one is on 1.13.1 - working fine with all options visible in menu, other was upgraded to 1.13.3. Same problem is on other devices updated to 1.13.3. |
going off what you said, i just flashed 1.13.1 and it works perfect first go. dam i spent 4 hours on it yesterday just flashing it, shes held up to atleast 100 flashs lol |
What lwip version are you using (v1, v2, low memory, high bandwidth)? Assuming it is self-built from "win10 and ide 1.8.7" |
Thanks, it helps, was using version 1.2.0 from git - it's newer than version in archive, add's message eques. |
I have the same issue with unvisible menus for mqtt, shedule, ntp... espurna from master branch (1.13.3) works OK I don't change any external libs, only espurna versions |
Can you build the web interface images using |
I have rebuilt and commit the webUI images, maybe you can also do a |
my bet it is related to #1300. current git of espasyncwebserver limits the buffer of sent ws messages by 8. that buffer is kept until the client receives them and windows is inherently slow at that. there is a workaround by doing request-response for module configuration, that way client will send N config requests and receive N config responses back, bu i have not tried it with lwip1 builds. |
@mcspr - I have not tried the older version of espasyncwebserver yet I build 1.13.3(working) and 1.13.4-dev(not working) with the same espasyncwebserver(current master version), |
@reaper7 which is strange, because I just tried building 1.13.3 in IDE with ESPAsyncWebServer master and still have shedule, ntp missing (maybe something else too). $ wscat --no-color --connect 192.168.4.2/ws
< {"weblog":"[203763] [WEBSOCKET] #2 connected, ip: 192.168.4.3, url: /ws\n"}
< {"maxNetworks":5,"wifiScan":true,"wifi":[{"ssid":"HELLO","pass":"THERE","ip":"192.168.4.2","gw":"192.168.4.1","mask":"255.255.255.0","dns":"192.168.4.1"}]}
< {"telnetVisible":1,"telnetSTA":true}
< {"webMode":0,"app_name":"ESPURNA","app_version":"1.13.3","app_build":"2019-01-08 11:15:18","manufacturer":"NODEMCU","chipid":"35A259","mac":"2C:3A:E8:35:A2:59","bssid":"...","channel":6,"device":"LOLIN","hostname":"ESPURNA-35A259","network":"HELLO","deviceip":"192.168.4.2","sketch_size":465600,"free_size":2678784,"sdk":"1.5.3(aec24ac9)","core":"2.3.0","heap":18768,"uptime":203,"rssi":-52,"loadaverage":1,"vcc":2732,"now":1546946382,"btnDelay":500,"webPort":80,"wsAuth":true,"cmdVisible":1}
< {"dbgVisible":1}
< {"apiVisible":1,"apiEnabled":false,"apiKey":"","apiRealTime":false,"apiRestFul":true}
< {"relayStatus":[true],"relayConfig":[{"gpio":12,"type":0,"reset":153,"boot":2,"pulse":0,"pulse_ms":0,"group":"","group_inv":0,"on_disc":0}],"relayVisible":1}
< {"ledVisible":1,"ledMode0":1}
< {"mqttVisible":1,"mqttStatus":true,"mqttEnabled":true,"mqttServer":"192.168.4.1","mqttPort":"1883","mqttUser":"","mqttClientID":"","mqttPassword":"","mqttKeep":300,"mqttRetain":true,"mqttQoS":0,"mqttTopic":"{hostname}","mqttUseJson":false} |
my arduino settings looks like this:
#define ITEAD_SONOFF_T1_3CH
#define MY_HOME "myhome"
#define MY_ROOM "myroom"
#define MY_HOSTNAME "sonofft13151"
#define RELAY_BOOT_MODE 2 // 0 - off, 1 - on, 2 - same
#define LED1_MODE LED_MODE_FINDME
#define WIFI1_SSID "somessid"
#define WIFI1_PASS "somepass"
#define ADMIN_PASS "somewebpass" // Default password (WEB, OTA, WIFI SoftAP)
#define HOSTNAME MY_HOSTNAME
#define MQTT_TOPIC MY_HOME"/"MY_ROOM"/"MY_HOSTNAME"/"
#define WIFI_FALLBACK_APMODE 0 // Fallback to AP mode if no STA connection
#define USE_PASSWORD 0
#define TELNET_SUPPORT 0 // Enable telnet support by default (3.34Kb)
#define TERMINAL_SUPPORT 0 // Enable terminal commands (0.97Kb)
#define WEB_SUPPORT 1 // Enable web support (http, api, 121.65Kb)
#define WEB_EMBEDDED 1 // Build the firmware with the web interface embedded in
#define WEB_FORCE_PASS_CHANGE 0
#define DEBUG_SERIAL_SUPPORT 0 // Enable serial debug log
#define DEBUG_UDP_SUPPORT 0 // Enable UDP debug log
#define DEBUG_TELNET_SUPPORT 0 // Enable telnet debug log (will only work if TELNET_SUPPORT is also 1)
#define DEBUG_WEB_SUPPORT 0 // Enable web debug log (will only work if WEB_SUPPORT is also 1)
#undef NTP_SUPPORT
#define NTP_SUPPORT 1 // Build with NTP support by default (6.78Kb)
#undef MQTT_SUPPORT
#define MQTT_SUPPORT 1 // MQTT support (22.38Kb async, 12.48Kb sync)
#undef MQTT_ENABLED
#define MQTT_ENABLED 1 // Do not enable MQTT connection by default
#define MQTT_AUTOCONNECT 1 // If enabled and MDNS_SERVER_SUPPORT=1 will perform an autodiscover and
#define MQTT_SERVER "somemqttserv" // Default MQTT broker address
#define MQTT_USER "somemqttuser" // Default MQTT broker usename
#define MQTT_PASS "somemqttpass" // Default MQTT broker password
#define MQTT_RETAIN true // MQTT retain flag
#define MQTT_QOS 0 // MQTT QoS value for all messages
#define MQTT_USE_JSON 0 // Group messages in a JSON body
#define HOMEASSISTANT_SUPPORT 1 // Build with home assistant support (if MQTT, 1.64Kb)
#define HOMEASSISTANT_ENABLED 1 // Integration not enabled by default
#define HOMEASSISTANT_PREFIX MY_HOME // Default MQTT prefix
#define DOMOTICZ_SUPPORT 0 // Build with domoticz (if MQTT) support (1.72Kb)
#define THINGSPEAK_SUPPORT 0 // Enable Thingspeak support by default (2.56Kb)
#define ALEXA_SUPPORT 0 // Enable Alexa support by default (10.84Kb)
|
@reaper7 Thank you for providing config! As to difference between 1.13.3 and 1.13.4-dev: I think i am going to do the proposed workaround to avoid possible issues like this (+ there would be nicer api to fetch module config after the initial one) edit: oops, wrong mention |
@mcspr - thanks for explaining :) You understand that I would like to have and use one version of the external library like ESPAsyncWebServer for all "my" projects. |
Hooray! And thanks for the pointers. |
@daxkamala - I checked and it works :) |
I forgot to update here that #1387 should have a fix for this. Note that webui needs to be rebuilt using |
@reaper7 @daxkamala can you verify changes in #1387 ? pre-built webui headers (replace |
@reaper7 two options:
or, if you do not want to modify your files, instead of checkout:
|
@mcspr - looks wery well! I always use the same custom config:
|
Just merged #1387 which solves this issue within ESPurna. Anyway it will be interesting to have some different approach to this on AsyncWebSocket class... |
@reaper7 i think you were missing correct webui. courtesy of Xose, |
Yes, I think web UI images should be created for every new feature committed. It's not obvious you have to build them too otherwise. |
You're probably right, I'll check it in the evening again :) |
True. My main problems are diffs and general repo size effects. While I was writing this, turns out the diff problem can be easily solved via .gitattributes by treating them as binary blobs:
I would also add a evil check to the CI, comparing generated files to the ones in the commit and fail if they are not the same ref: |
it was a problem with missing correct webui :) mea culpa ! |
I am still missing the MQTT web interface. i just did a the relevant parts from my custom.h are:
I have also tried using MQTT_USE_ASYNC 0, but no change. I also re-compiled everything with an empty custom.h (IIRC, MQTT support is enabled by default?) and still have no MQTT tab. the config command on the debug console gives me:
P.S.: when you guys for example say "try it with 1.13.3" - how can I do that via git? |
Tools used
win10 and ide 1.8.7
ive flashed 1 of these already and everything was seemless. this one i cannot seem to get the MQTT option to appear in web menu. ive probly built it 20 times trying different things in hardware.h for mqtt support. but nothing works. output on seriel on startup says
[000674] [MQTT] Async ENABLED, SSL DISABLED, Autoconnect ENABLED
[000687] [THINGSPEAK] Async ENABLED, SSL DISABLED
seems to be on but not appearing. any ideas
The text was updated successfully, but these errors were encountered: