Search found 37 matches

by Pcborges
Tue Jun 11, 2019 2:46 pm
Forum: ESP32 Arduino
Topic: ESP32 not responding to COAP requests with services
Replies: 0
Views: 2237

ESP32 not responding to COAP requests with services

Hi, I have loaded my ESP32 with a COAP server script found at: https://www.arduinolibraries.info/libraries/co-ap-simple-library The ESP32 demo script is for a COAP server with a single service named "light" And in my Windows10 Chrome setup I loaded an Extention that talks COAP and should be able to ...
by Pcborges
Sun Mar 10, 2019 11:31 am
Forum: General Discussion
Topic: ESP32 reboots somewhat once a day. How to capture the conditions?
Replies: 1
Views: 3290

ESP32 reboots somewhat once a day. How to capture the conditions?

Hi, I have a sketch that work great and runs continuously collecting data from a water flux sensor. From time to time it reboots with no apparent reason. I have a sort of log that tracks system reboots and other conditions (during boot process it records time of the boot). What are the resources ava...
by Pcborges
Sat Jan 26, 2019 9:59 pm
Forum: General Discussion
Topic: ESP32 standard Bluetooth. How to force disconnect?
Replies: 1
Views: 3432

ESP32 standard Bluetooth. How to force disconnect?

Hi, I am using ESP32 regular Bluetooth (Not BLE). I had to implement passcode protection inside my sketch to compensate for the lack of PIN authentication on ESP32 Bluetooth. I would like to force Bluetooth disconnection from current user if he fails to enter right passcode. Is there a way to do tha...
by Pcborges
Wed Jan 23, 2019 1:12 pm
Forum: General Discussion
Topic: Do I have to http.begin/http.end for every http.post?
Replies: 2
Views: 4357

Do I have to http.begin/http.end for every http.post?

Hi, I have a data collection sketch that stores data (in the form of SQL formatted commands) in a text file to be posted at midnight. I am looking for some help from someone with experience in this sort of arrangements in order to save some development/testing time. Currently I am doing as follows: ...
by Pcborges
Sat Dec 08, 2018 9:37 am
Forum: ESP32 Arduino
Topic: http POST fails via ESP32. Httpresponse -11 generated by HTTPClient.h
Replies: 2
Views: 6394

Re: http POST fails via ESP32. Httpresponse -11 generated by HTTPClient.h

Hi, thanks for stopping by. Yes I did create a post.html sending the exact same sql statement and it works. <html> <head> <title>Registration Form</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> <h2>Registration Form</h2> <form action="http://www.MySite.com...
by Pcborges
Fri Dec 07, 2018 9:40 pm
Forum: ESP32 Arduino
Topic: http POST fails via ESP32. Httpresponse -11 generated by HTTPClient.h
Replies: 2
Views: 6394

http POST fails via ESP32. Httpresponse -11 generated by HTTPClient.h

Hi, I have an ESP32 app that accesses a MySQL database via a php script. I noticed that INSERT was returning error but the data was being recorded successfully. I finally traced the error message to be generated by HTTPClient.h The error, -11, generated by httpclient.h (https://github.com/espressif/...
by Pcborges
Wed Nov 28, 2018 11:50 am
Forum: ESP32 Arduino
Topic: ESP32 http post example
Replies: 4
Views: 15182

Re: ESP32 http post example

Dear Che, can you please clarify what is ROOT_CA on the line below:

Code: Select all

http.begin("https://example.com", root_ca);  //Specify destination for HTTP request
Another question is:
I never used

Code: Select all

WiFiClientSecure http; 
Do I have to?
Where do I get directions on how to use it?

Many thanks
Paulo Borges
by Pcborges
Wed Nov 28, 2018 11:46 am
Forum: ESP32 Arduino
Topic: ESP32 http post example
Replies: 4
Views: 15182

Re: ESP32 http post example

Dear ESP_Sprite, thanks for the tip.
I do understand the risks and are also implementing ways so the PHP script will require some form of authentication before accepting the request.
Thanks again
Paulo
by Pcborges
Mon Nov 26, 2018 1:29 pm
Forum: ESP32 Arduino
Topic: ESP32 http post example
Replies: 4
Views: 15182

ESP32 http post example

Hi, I am currently using http GET request in my aplication to send data to my MySQL database via PHP script. I have one PHP script for every function I need like insert, delete, update and for individual tables. It is a lot of PHP scripts. Now I intend to port the whole thing to use a single PHP scr...