Display - OLED SSD1306/SH1106 Framed Bug: Can't send strings with spaces using http request #2863
Closed
11 of 14 tasks
Labels
Type: Not a bug
Issues that later appeared not to be a bug (e.g. user error)
Checklist
I have...
ESP_Easy_mega-20181001_test_ESP8266_4096_VCC.bin
)Steps already tried...
.bin
files are included in the ZIP)If you self compile, please state this and PLEASE try to ONLY REPORT ISSUES WITH OFFICIAL BUILDS!
Currently latest build: ESP_Easy_mega-20191208_test_beta_ESP8266_4M1M
Summarize of the problem/feature request
On EspEasy ESP_Easy_mega-20191208_test_beta_ESP8266_4M1M installed on a Wemos D1 mini clone I have a 128x64px OLED display
Using a bash script I try to send text to a line of the display using curl with an url like this:
url=http://${ESPADDR2}/control?cmd=OLEDFRAMEDCMD,1,update%3a%25SP%25${now}
But the only text displaying is the "update:" part, anything after the first space is ignored (I also tried to send %20 for a space, but to no avail, so I tried the systemvariable %SP%)
The bug appears to be in the P036 code, in PLUGIN_WRITE section:
It only reads 1 word from the url, as there is a yet unsupported parameter (mode) that needs to be parsed sometime in the future.
Proposed solution:
Expected behavior
I'd expect, assuming the command format should not change, that anything up until the last comma(or end of string if no comma is found) should be read from the parameters as NewContent
Actual behavior
Only the first word is read (and that word can't be 'display'...)
Steps to reproduce
It's a software bug, so restarting isn't going to help
System configuration
Hardware:
Wemos D1 mini clone
ESP Easy version: ESP_Easy_mega-20191208_test_beta_ESP8266_4M1M
Rules or log data
(Edited to replace some braces)
The text was updated successfully, but these errors were encountered: