Search found 60 matches
- Fri Feb 23, 2018 5:14 am
- Forum: General Discussion
- Topic: loading AWS certs from SPIFFS
- Replies: 17
- Views: 21837
Re: loading AWS certs from SPIFFS
So I tried this: ESP_LOGI(TAG, "Reading file"); f = fopen("/spiffs/aws-root-ca.pem", "r"); if (f == NULL) { ESP_LOGE(TAG, "Failed to open file for reading"); return; } char line[64]; int r = fgets(line, sizeof(line), f); ESP_LOGI(TAG,"fgets Returned %d",r); char line2[64]; memset(line2, 0, sizeof(li...
- Thu Feb 22, 2018 6:56 am
- Forum: General Discussion
- Topic: loading AWS certs from SPIFFS
- Replies: 17
- Views: 21837
Re: loading AWS certs from SPIFFS
yes the spiffs.bin file has all data with some '?' in it. and content of certs is also easily visible. this is the current code I am testing. ret = esp_spiffs_info(NULL, &total, &used); if (ret != ESP_OK) { ESP_LOGE(TAG, "Failed to get SPIFFS partition information"); } else { ESP_LOGW(TAG, "Partitio...
- Wed Feb 21, 2018 8:49 pm
- Forum: General Discussion
- Topic: loading AWS certs from SPIFFS
- Replies: 17
- Views: 21837
Re: loading AWS certs from SPIFFS
So I added code to check the file data is correct or not and this is what esp reads for all three files . I (306) subpub: FILE EXIST I (306) subpub: Read from file: '??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????...
- Wed Feb 21, 2018 7:36 pm
- Forum: General Discussion
- Topic: loading AWS certs from SPIFFS
- Replies: 17
- Views: 21837
loading AWS certs from SPIFFS
Hi so I was trying to load certificates from SPIFFS and had trouble. I thought it would be easy to simply flash certs and mount spiffs. I modified the subcribe and publish code and edited sd Card section here is my code : #if defined(CONFIG_EXAMPLE_EMBEDDED_CERTS) mqttInitParams.pRootCALocation = (c...
- Sat Feb 10, 2018 6:55 pm
- Forum: General Discussion
- Topic: BT: notification already registered
- Replies: 0
- Views: 2180
BT: notification already registered
Hi, MY problem is I connect to the device and then enable notification for the first time it is enabled on the peripheral device and this work and then I close the connection then again when peripheral connects and ESP32(gattc) try to enable notification I get this error and it's not enabled on peri...
- Sat Feb 10, 2018 6:48 pm
- Forum: Sample Code
- Topic: Sending command fomr gatt client to server (central to peripheric)
- Replies: 5
- Views: 11411
Re: Sending command fomr gatt client to server (central to peripheric)
this one is frustrating I am enabling notification but I alway get notification already registered.
And it does not register notification again once it has registered notification and disconnects.
Please help.
Code: Select all
E (279690) BT: notification already registered
Please help.
- Thu Feb 08, 2018 1:10 pm
- Forum: Sample Code
- Topic: Sending command fomr gatt client to server (central to peripheric)
- Replies: 5
- Views: 11411
Re: Sending command fomr gatt client to server (central to peripheric)
Hi, I have some thing similar problem my devices work like this: NRF51 starts advertisement and ESP32 connects for the first time enables notification takes data and disconnects. then whenever nrf51 has data it starts advertising. but when esp32 again writes to notify it does not write to nrf51 and ...
- Sun Jan 28, 2018 3:01 pm
- Forum: General Discussion
- Topic: Looking for consultant/contractor help with AWS IoT on ESP32
- Replies: 2
- Views: 4236
Re: Looking for consultant/contractor help with AWS IoT on ESP32
hope this script helps to automate generating certs. add more like registering certs on aws IoT via Command(yes there is one) also generating a unique mqtt client ID and setting it in to code would be great. #!/bin/bash FQDN=$1 # make directories to work from mkdir -p certs/{server,client,ca,tmp} # ...
- Fri Dec 22, 2017 1:44 pm
- Forum: General Discussion
- Topic: some example to use WS2812B with IDF?
- Replies: 1
- Views: 10393
Re: some example to use WS2812B with IDF?
never mind this one worked for me .
https://github.com/Lucas-Bruder/ESP32_LED_STRIP
https://github.com/Lucas-Bruder/ESP32_LED_STRIP
- Tue Dec 19, 2017 5:59 pm
- Forum: General Discussion
- Topic: some example to use WS2812B with IDF?
- Replies: 1
- Views: 10393
some example to use WS2812B with IDF?
I am using WS2812B with my project as indicator. I tired to find library but it does not work for me. Do any one have any idea workin library? The one I used gave me this error . https://github.com/FozzTexx/ws2812-demo/issues/8 I have used 3 pin RGB led for now but eventually it will be replaced wit...