Search found 97 matches

by rwel59
Fri Oct 27, 2017 5:46 pm
Forum: General Discussion
Topic: Method to catch ill-formed json string with cJSON_Parse
Replies: 6
Views: 9140

Method to catch ill-formed json string with cJSON_Parse

Had a badly formed json string that I tried to parse and threw exception causing reset. Is there a method to catch this kind of stuff?

Attempted to try-catch but couldn't get that to work.
by rwel59
Thu Oct 26, 2017 7:05 pm
Forum: General Discussion
Topic: Recommendations for MQTT Library with ESPIDF
Replies: 15
Views: 26919

Recommendations for MQTT Library with ESPIDF

Seems there are a number of choices for mqtt client libraries. Can anyone give their input on one versus the other. I'm using Eclipse with ESPIDF (for ESP32) in c++. The libraries I was looking at include Paho Mqtt C, ESPMQTT (Tuanpmt), ESP-MQTT (base on lwmqtt) and the aws-iot. Starting off with si...
by rwel59
Fri Oct 13, 2017 2:46 pm
Forum: ESP-IDF
Topic: Missing declaration: esp_gattc_service_elem_t
Replies: 5
Views: 7823

Re: Missing declaration: esp_gattc_service_elem_t

Didn't really want to use pre-release stuff. Got into it by trying to study/compile your (Kolban) example code on BLE Notify with your c++ wrappers. So, if I want to try and follow your stuff, do you have any other suggestions? I was assuming that the 2.1 release probably does not offer much in the ...
by rwel59
Fri Oct 13, 2017 12:12 pm
Forum: ESP-IDF
Topic: Missing declaration: esp_gattc_service_elem_t
Replies: 5
Views: 7823

Re: Missing declaration: esp_gattc_service_elem_t

looked through that header... mine ends at line line 395 so I guess the issue is an outdated version. was quite sure that I had the latest but apparently that is not the case. I'm using PlatformIO with VS Code dev environment. PlatformIO states that they update to the latest STABLE version which the...
by rwel59
Fri Oct 13, 2017 12:33 am
Forum: ESP-IDF
Topic: Missing declaration: esp_gattc_service_elem_t
Replies: 5
Views: 7823

Missing declaration: esp_gattc_service_elem_t

I've looked through lots of header files searching for the definition/declaration of this element: esp_gattc_service_elem_t. Can't find it and a number of BLE functions seem to use it, including some sample code I've got that doesn't compile because of this error. Has it been superceded by something...
by rwel59
Thu Oct 12, 2017 9:19 pm
Forum: General Discussion
Topic: Using c++ for ESP32 develpment with ESP-IDF, PlatformIO
Replies: 2
Views: 6614

Re: Using c++ for ESP32 develpment with ESP-IDF, PlatformIO

thanks, I've been looking at his work. Haven't found anything that addresses this. I'm guessing it has more to do with Platform IO than anything else. It doesn't seem like @Nkolban has worked in the VS Code/Platform IO environment, or I haven't found anything that pertains to that specifically in hi...
by rwel59
Thu Oct 12, 2017 3:46 pm
Forum: General Discussion
Topic: Using c++ for ESP32 develpment with ESP-IDF, PlatformIO
Replies: 2
Views: 6614

Using c++ for ESP32 develpment with ESP-IDF, PlatformIO

Been searching this topic for awhile without luck so if there are already answers somewhere, I'd be happy to follow someone's link. Just started with ESP32 dev. Have esp8266 code (arduino framework) developed using VS Code with PlatformIO extension that I am trying to migrate to ESP32. I have select...