-
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
set configuration options and settings via MQTT (Telnet-MQTT-proxy?) ? #1505
Comments
Maybe not directly terminal commands, but tbh that would be interesting thing to have. Currently this is what I am trying with Home Assistant, discovery mechanism replaced bunch of manual config entries. Two problems though:
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
I'd just like to re-iterate that this functionality would be extremely
useful for remote Espurna management, and IMHO relatively easy to implement.
(And I'm responding so that the issue doesn't become "stale")
…On Wed, Mar 27, 2019, 15:32 stale[bot] ***@***.***> wrote:
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed in 7 days if no further activity occurs.
Thank you for your contributions.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1505 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFxdr2RWpIwgkX79iCTO2kS-49cNY2wLks5va-NtgaJpZM4aNyiP>
.
|
Also depends on #1234, because we may need to buffer incoming messages (e.g. we send whole config) |
For me, any kind of NAT-traversal-able way to change config things would be
very very useful.
Passwords, wifi settings, sensor calibration, etc.
Pushing whole firmware images wouldn't be necessary because of nofuss, I
guess.
…On Thu, Mar 28, 2019, 01:40 Max Prokhorov ***@***.***> wrote:
Also depends on #1234 <#1234>,
because we may need to buffer incoming messages (e.g. we send whole config)
Basic idea is still the same - subscribe to a specific topic and apply all
kv pairs as settings?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1505 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFxdr2e4ygu1FseTTMTzV-E_qkBG9VNCks5vbHIDgaJpZM4aNyiP>
.
|
Huh. mqtt.ino I'll tryo too find that part some other day, but if someone knows the relevant calls, we could implement this relatively quickly via the /action topic, i think? |
Sorry to use this issue as a notepad of sorts, but: |
Sorry, I was a bit carried away with this. Yes, that is the way. Action needs to be subtopic though? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
Long overdue... See #2247 There is a weird distinction between PUT and GET parameter list, as I was only been able to call the device with MQTT is not yet implemented. We need to either patch Async Mqtt Client lib to support streaming payloads or somehow hint about the limit of TCP_MSS (536 or 1460 bytes plain text, minus MQTT header overhead, minus SSL overhead (when used)). One possible option is marvinroger/async-mqtt-client#184 |
Also, for future reference, pubsubclient is the only client atm. that can stream data the same way: To send really large payploads, this is also is seemingly depends on WiFiClient being in 'sync' mode so that we flush the data periodically without switching out of the Print loop, which is set by the arduino-mqtt library has an issue for this specific use case 256dpi/arduino-mqtt#145 (which is still pending) edit: TODO: check out WriteBufferingStream from https://github.com/bblanchon/ArduinoStreamUtils/ as a possible workaround. It does implement the flush()'ing part |
Experimenting via #2247 Only a single command accepted right now. Batching through |
I have a couple of espurna-powered Sonoff POWs deployed 'in the wild'. They are behind different types of NATs and firewalls, and usually impossible to access 'from the outside'. When I set them up, I just make sure that they can connect to my MQTT server, and let them be.
Is there some way to set (and save) configuration parameters (secondary wifi network, sensor configuration, etc.) via MQTT messages? This would be a very useful feature, since MQTT bypasses the whole NAT issue.
Maybe a MQTT-telnet-proxy topic I could send telnet commands to, and get telnet responses back? IIRC, everything can be done over telnet, so that would allow everything to be set via MQTT, too?
The text was updated successfully, but these errors were encountered: