-
Notifications
You must be signed in to change notification settings - Fork 147
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
MaMaDuck example captive portal form not publishing when fully filled out #116
Comments
looks like 20 char max on the form. 20 chars pass 20 chars entered on two fields pass 21 chars entered on 2 fields failed 21 chars entered on one field fails |
Ok, apparently I am running an older version of PubSubClient where the MQTT_MAX_MESSAGE_SIZE is set to 128 bytes rather than the newer default of 256 bytes. Perhaps noting in the docs? It was a bit frustrating for a while and could be for others as well. You can note this ticket: knolleary/pubsubclient#66 and this doc: |
perhaps could be included in the wiki> |
Thanks for the field notes @trentbrown13. @tqrahman can we update the docs? |
Awesome, I added it to the FAQs in the wiki. Thank you @trentbrown13 and @krook! |
Describe the bug
while testing, I noticed the captive portal would fail to publish (PaPaDuck => MQTT) when it was fully or mostly filled out. It will fail when I just add my full name and address but succeed if I just have a few char's in multiple fields.
This smells like a "size" or number of char issues - I'll try to narrow it down
Working publish with just a few random chars entered in the form
16:19:32.879 -> handlePacket pSize 47
16:19:32.915 -> LORA RCV millis:94378 rssi:-47.00 snr:6.25 fe:11618.22 size:47 data:f5025200f609793933787572396c00f711742a2a732a7364662a2a2a2a2a2a2a2a00f3025200e30773746174757300
16:19:32.915 -> getPacketData senderId_B Len = 2
16:19:32.915 -> getPacketData User ID: R
16:19:32.915 -> getPacketData messageId_B Len = 9
16:19:32.915 -> getPacketData Message ID: y93xur9l
16:19:32.915 -> getPacketData payload_B Len = 17
16:19:32.915 -> getPacketData Message: ts*sdf******
16:19:32.915 -> getPacketData path_B Len = 2
16:19:32.915 -> getPacketData Path: R
16:19:32.949 -> getPacketData topic_B Len = 7
16:19:32.949 -> hit2
16:19:32.949 -> getPacketData len0 Topic: status
16:19:32.949 -> hit3
16:19:32.949 -> iot-2/evt/status/fmt/json{
16:19:32.949 -> "DeviceID": "R",
16:19:32.949 -> "MessageID": "y93xur9l",
16:19:32.949 -> "Payload": "ts*sdf******",
16:19:32.949 -> "path": "R,Papa"
16:19:32.949 -> }
16:19:32.949 -> Publish to Cloud ok
16:19:32.949 -> {
16:19:32.949 -> "DeviceID": "R",
16:19:32.949 -> "MessageID": "y93xur9l",
16:19:32.949 -> "Payload": "ts*sdf******",
16:19:32.949 -> "path": "R,Papa"
16:19:32.949 -> }
16:19:32.949 -> Publish To Local MQTT ok
Example of a more fully filled out form failing publish
16:52:04.810 -> handlePacket pSize 95
16:52:04.810 -> LORA RCV millis:2046266 rssi:-50.00 snr:6.25 fe:11785.99 size:95 data:f5025200f6096c3236627764306900f7415472656e742a42726f776e2a37333120526f626572746f204176652a53616e746120426172626172612a39333130392a383035373239313831312a2a2a2a2a2a00f3025200e30773746174757300
16:52:04.842 -> getPacketData senderId_B Len = 2
16:52:04.842 -> getPacketData User ID: R
16:52:04.842 -> getPacketData messageId_B Len = 9
16:52:04.842 -> getPacketData Message ID: l26bwd0i
16:52:04.842 -> getPacketData payload_B Len = 65
16:52:04.842 -> getPacketData Message: TrentBrown731 Roberto AveSanta Barbara931098057291811*****
16:52:04.887 -> getPacketData path_B Len = 2
16:52:04.887 -> getPacketData Path: R
16:52:04.887 -> getPacketData topic_B Len = 7
16:52:04.887 -> hit2
16:52:04.887 -> getPacketData len0 Topic: status
16:52:04.887 -> hit3
16:52:04.887 -> iot-2/evt/status/fmt/jsonPublish to 'client' failed
16:52:04.887 -> Publish to 'LocalMqttServer' failed
To Reproduce
Steps to reproduce the behavior:
Fill out the captive portal form on the MaMaDuck example and hit send. Monitor the serial output on the PaPaDuck.
Expected behavior
the Form information should be published regardless of the amount of information entered on the form
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: