Firmware for ES8266-based smart devices (https://github.com/xoseperez/espurna)
mcspr on garland-rebase
garland: fix Stars animation wi… garland: disable software watch… garland: improve anim_assemble and 10 more (compare)
hi again, this time I'm facing this:
[163904] [WEBSERVER] Request: GET /auth
[163939] [WEBSOCKET] #1 connected, ip: 192.168.4.2, url: /ws
[164086] [WEBSOCKET] #1 error(1002): Invalid UTF-8 in text frame"ipL�- $ ' mask","dns","stored"],"networks":[]},"max":5}
[164089] [WEBSOCKET] #1 disconnected
[165659] [WEBSERVER] Request: GET /index.html
[165789] [WEBSERVER] Request: GET /auth
[165812] [WEBSOCKET] #2 connected, ip: 192.168.4.2, url: /ws
[165962] [WEBSOCKET] #2 error(1002): Invalid UTF-8 in text frame"9f␟�� j␁
[165964] [WEBSOCKET] #2 disconnected
[166904] [WEBSERVER] Request: GET /index.html
[167031] [WEBSERVER] Request: GET /auth
[167055] [WEBSOCKET] #3 connected, ip: 192.168.4.2, url: /ws
[167205] [WEBSOCKET] #3 error(1002): Invalid UTF-8 in text frame
[167207] [WEBSOCKET] #3 disconnected
after trying with "platform = ${common.arduino_core_2_6_3}", any hints?
Thanks once more
Oscar
ompiling .pio\build\arilux-al-lc02\lib77b\ESP Async WebServer\WebAuthentication.cpp.o
^
compilation terminated.
* [.pio\build\arilux-al-lc02\libb1a\AsyncTCP_ID1826\AsyncTCP.cpp.o] Error 1
hi, unfortunately I have deleted old .elf & .bin, and I have replaced them with new ones, but something strange is still happening since it doesn't allow me to add any new wifi network and it still not appearing any sensors fields:
STATUS
Current configuration
Manufacturer
GENERIC
Device
ESP01S_DHT11_10
Chip ID
erase.config
command too. so far I am not seeing any issues with communication, but what you are describing may be explained by missing ws packets. like when you can't create network and it says "Max number of networks reached", for some reason that message was lost (part of which you have seen in the ws log as error(1002): Invalid UTF-8 in text frame"ipL�- $ ' mask","dns","stored"],"networks":[]},"max":5}
)
I just noticed it keeps on rebooting
ets Jan 8 2013,rst cause:4, boot mode:(3,6)
wdt reset
load 0x4010f000, len 1392, room 16
tail 0
chksum 0xd0
csum 0xd0
v3d128e5c
~ld
ets Jan 8 2013,rst cause:4, boot mode:(3,6)
wdt reset
load 0x4010f000, len 1392, room 16
tail 0
chksum 0xd0
csum 0xd0
v3d128e5c
~ld
[000184]
After erasing the flash and flashing the latest build back it does still happen
[WEBSERVER] Request: GET /auth
[051035] [WEBSOCKET] #1 connected, ip: 192.168.4.2, url: /ws
[051178] [WEBSOCKET] #1 error(1002): Invalid UTF-8 in text frame
[051181] [WEBSOCKET] #1 disconnected
[054080] [SENSOR] Error reading data from DHT11 @ GPIO2 (error: 3)
[060005] [MAIN] System OK
I could only change the password, no wifi, nothing
can you send the resulting .elf?
sure, where shall I sent it to?
only one device has this issue or all of 2.6.3 Core builds?
as far as I know relays doesn't have any issue but I haven't tested any more
any way you can capture http session with wireshark / tcpdump so we can see exactly the way frames are sent?
good idea, please let me know where shall I upload it
thanks once more
Oscar
I'm developing an Android app that supposed to send PUT request to espurna and when I try the same request using curl, I get success response, but from the Android app I get 404 error with PUT request, here is the request for both from mobile app and curl, I listened to both requests on my PC using netcat
user@Laptop:~$ nc -l 192.168.1.104 55555
PUT /api/relay/0 HTTP/1.1
Host: 192.168.1.104:55555
User-Agent: curl/7.58.0
Accept: application/json
Content-Length: 31
Content-Type: application/x-www-form-urlencoded
apikey=2E5DE48567FB10F2&value=1
user@Laptop:~$ nc -l 192.168.1.104 55555
PUT /api/relay/0 HTTP/1.1
Accept: application/json
Content-Type: application/json; charset=utf-8
User-Agent: Dalvik/2.1.0 (Linux; U; Android 9; HRY-LX1MEB Build/HONORHRY-LX1MEB)
Host: 192.168.1.104:55555
Connection: Keep-Alive
Accept-Encoding: gzip
Content-Length: 31
apikey=2E5DE48567FB10F2&value=1
here is my android java request
public void jsonRequestVolley(int method, String url, String requestBody) {
RequestQueue queue = Volley.newRequestQueue(context);
JsonObjectRequest jsonRequest = new JsonObjectRequest(
method,
url,
requestBody,
successResponse(),
errorResponse()
)
{
/**
* Passing some request headers
* */
@Override
public Map<String, String> getHeaders() {
HashMap<String, String> headers = new HashMap<String, String>();
headers.put("Accept", "application/json");
return headers;
}
};
queue.add(jsonRequest);
}
the working curl command is
curl -X PUT -H "Accept: application/json" http://192.168.1.105:55555/api/relay/0 --data "apikey=2E5DE48567FB10F2&value=1"
```
Content-Type: application/x-www-form-urlencoded
I fixed the header because of local server requirements so, it worked now it look like
```nc -l 192.168.1.104 55555
PUT /api/relay/0 HTTP/1.1
Accept: application/json
Content-Type: application/x-www-form-urlencoded
User-Agent: Dalvik/2.1.0 (Linux; U; Android 9; HRY-LX1MEB Build/HONORHRY-LX1MEB)
Host: 192.168.1.104:55555
Connection: Keep-Alive
Accept-Encoding: gzip
Content-Length: 31
I added the following to Android code
@Override
public Map<String, String> getHeaders() {
HashMap<String, String> headers = new HashMap<String, String>();
headers.put("Accept", "application/json");
return headers;
}
@Override
public String getBodyContentType() {
return "application/x-www-form-urlencoded";
}
```
all in request code.
Hi, I have done the integration of the MUVIT_IO MIOBULB008, it seems to work, someone can confirm if it is correct ....
// ------------------------------------------------ -----------------------------
// MUVIT_IO_MIOBULB008
// ------------------------------------------------ -----------------------------
// Info
#define MANUFACTURER "MUVIT_IO"
#define DEVICE "MIOBULB008"
#define RELAY_PROVIDER RELAY_PROVIDER_LIGHT
#define LIGHT_PROVIDER LIGHT_PROVIDER_DIMMER
#define DUMMY_RELAY_COUNT 1
// Light
#define LIGHT_CHANNELS 5
#define LIGHT_CH1_PIN 4 // RED
#define LIGHT_CH2_PIN 12 // GREEN
#define LIGHT_CH3_PIN 14 // BLUE
#define LIGHT_CH4_PIN 13 // WARM WHITE
#define LIGHT_CH5_PIN 5 // COLD WHITE
#define LIGHT_CH1_INVERSE 0
#define LIGHT_CH2_INVERSE 0
#define LIGHT_CH3_INVERSE 0
#define LIGHT_CH4_INVERSE 0
#define LIGHT_CH5_INVERSE 0
Hello folks,
I have a following problem, would be super happy for some pointers:
Sonoff S20->flashed espurna -> SoftAP is not firing up, no leds are blinking
Any ideas? Something seems broken