-
Notifications
You must be signed in to change notification settings - Fork 35
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
Values with double quotes in text areas not working properly #102
Comments
Hi @abaskin,
into a textarea. If so. Aside from the posible " bug. Why not save these as separate fields?
|
Yes, this is the entire value I am trying to store. The reason for using JSON as opposed to individual fields is that the app supports a number of different things attached to the device. So one device may have a DHT sensor attached and another may have a switch, relay and led attached. Supporting each attached thing with separate fields would make the setup page unwieldy at best especially for something like LED's where there may be more than one attached to the device. |
@abaskin Maby you can help by testing if this works by just hardcoding this value into a var without using the IAS addfield stuff? Storing should not be the problem. Im wondering if the json still gets read correctly when taken from this var. |
@abaskin FIXED! Example: Changes were made here: c42ab03 We need a few people to test this before we can send out a new release. Maby you can help? Easiest thing would be te replace your IOTAppStory.h and .cpp files with the changed ones from the master. |
Added a new release: https://github.com/iotappstory/ESP-Library/releases/latest Should be in the library manager within an hour. |
@abaskin I think we can close this issue do you agree? |
Yes |
- Implemented changes made in the master for issue #102 - Moved the ESP32 PROGMEM root ca to src\espressif\esp32\callServer_WiFiClientSecure.h (root ca is optional as the new default is to store it in SPIFFS which can be updated) - Moved the ESP8266 default fingerprint to config.h as a define - Added strCertScan method. Which scans SPIFFS folder /certs/ for certificates
- Updated defines accourding to: iotappstory/ESP-Library/commit/59aa54d17438bc28276ad197db88d346cadd95f7 - ESP32: getFreeSketchSpace(), getSketchSize() & ESP_GETCHIPID are available since the latest core release. So use them... - Implemented changes made in the master for issue #102 - Added strCertScan method. Which scans SPIFFS folder /certs/ for certificates
When I enter a value that includes double quotes into a text area field, the value is accepted and saved properly. However when I later enter configuration mode and select the setting tab the resulting page is blank. An example value is below. I see the same result for both one line and multi line values that include double quotes.
{ "name": "Test Module 1", "switch": [{ "name": "Test Switch 1", "pin": "D1", "led": ["D4"] }] }
The text was updated successfully, but these errors were encountered: