Search found 19 matches
- Mon Jun 03, 2019 9:23 am
- Forum: General Discussion
- Topic: Asking for help!!! "OTA using web server"
- Replies: 4
- Views: 6942
Re: Asking for help!!! "OTA using web server"
@tasaf1 Please refer to the file_server example which also features file uploading onto flash (SPIFFS partition) : https://github.com/espressif/esp-idf/blob/master/examples/protocols/http_server/file_serving/main/file_server.c#L283 There is a limit of 200KB on the upload file size. Increase it to al...
- Tue Mar 12, 2019 6:17 pm
- Forum: ESP-IDF
- Topic: Device Initiated Protocomm Messages?
- Replies: 3
- Views: 5503
Re: Device Initiated Protocomm Messages?
For the BLE notification case, it should be a matter of adding a new endpoint (characteristic) and just doing the subscription/notification with payloads from calling `protocomm_req_handle`? For this to work the notify bit will have to be enabled for the characteristic corresponding to your endpoin...
- Mon Mar 11, 2019 9:58 am
- Forum: ESP-IDF
- Topic: Device Initiated Protocomm Messages?
- Replies: 3
- Views: 5503
Re: Device Initiated Protocomm Messages?
Thanks for showing interest! Presently protocomm provides out of the box support for transport over BLE and HTTP Server/SoftAP, though each of these implementations assume simple server-client type scenario with the device(ESP32) hosting the server. Since your requirement is that of a mixed approach...
- Fri Mar 01, 2019 6:14 am
- Forum: ESP-IDF
- Topic: http_server, server_port overide settings
- Replies: 2
- Views: 5079
Re: http_server, server_port overide settings
Sorry about the delayed reply. The port configuration works and can be tested using examples/protocols/http_server/advanced_tests . Here's how the configuration is set: httpd_handle_t hd; httpd_config_t config = HTTPD_DEFAULT_CONFIG(); config.server_port = 1234; ESP_ERROR_CHECK(httpd_start(&hd, &con...
- Tue Feb 26, 2019 11:28 am
- Forum: ESP-IDF
- Topic: Adding Extra Protocomm Endpints to ble_prov example for BLE provosioning
- Replies: 6
- Views: 8703
Re: Adding Extra Protocomm Endpints to ble_prov example for BLE provosioning
You also need to decrypt the response data in the python script. That may seem unnecessary for your use case, but without that the encryption engine will not update the internal AES-CTR security counter on the client side (See https://docs.espressif.com/projects/esp-idf/en/latest/api-reference/provi...
- Fri Feb 22, 2019 8:13 pm
- Forum: ESP-IDF
- Topic: Adding Extra Protocomm Endpints to ble_prov example for BLE provosioning
- Replies: 6
- Views: 8703
Re: Adding Extra Protocomm Endpints to ble_prov example for BLE provosioning
According to the error log:
That means your data is for some reason arriving on the wrong endpoint "prov-config", which is at 0xFF52. Check if that's not the case
Code: Select all
E (23482) protocomm: Request handler for prov-config failed
- Fri Feb 22, 2019 6:28 am
- Forum: ESP-IDF
- Topic: Adding Extra Protocomm Endpints to ble_prov example for BLE provosioning
- Replies: 6
- Views: 8703
Re: Adding Extra Protocomm Endpints to ble_prov example for BLE provosioning
It's actually due to BlueZ keeping the old device data in cache. To refresh the cache, find the cache folder corresponding to your ESP32 under "/var/lib/bluetooth/<MAC ID of your Bluetooth controller>/<MAC ID of ESP32>" and remove it. Another way is to disable caching from "/etc/bluetooth/main.conf"...
- Mon Feb 18, 2019 5:41 am
- Forum: General Discussion
- Topic: httpd_register_uri_handler, catch all un-registered requests
- Replies: 1
- Views: 3942
Re: httpd_register_uri_handler, catch all un-registered requests
An easy way of handling various HTTP server errors will soon be available. So one can register an error handler for say 404 error, which is generated when requested URI is not found. Till this features is merged you could use the wildcard matching scheme to handle requests to all URIs "/*" other tha...
- Mon Feb 18, 2019 5:27 am
- Forum: ESP-IDF
- Topic: esp_http_server not included/linked
- Replies: 2
- Views: 4304
Re: esp_http_server not included/linked
@JSchaef Seems like your IDF_PATH is not set correctly. Could you make sure that's not the case
- Mon Feb 18, 2019 5:23 am
- Forum: ESP-IDF
- Topic: esp_http_server to serve files from spiffs
- Replies: 2
- Views: 6915
Re: esp_http_server to serve files from spiffs
It may be too late for an answer, but URI wildcard matching scheme was recently added to esp_http_server. See the file server example offered by esp_http_server https://github.com/espressif/esp-idf/tree/master/examples/protocols/http_server/file_serving. This demonstrates serving files kept on SPIFF...