Search found 51 matches

by Trialblazer47
Fri Feb 23, 2018 6:46 am
Forum: General Discussion
Topic: loading AWS certs from SPIFFS
Replies: 8
Views: 142

Re: loading AWS certs from SPIFFS

yes, the path is right. I am actually now trying this with spiffs example file so I hardcoded it here and if it was wrong then fopen should not fail? note: I am doing this with files mounted with help of esptool and image created with mkspiffs. if you could try uploading file to spiffs partition and...
by Trialblazer47
Fri Feb 23, 2018 5:14 am
Forum: General Discussion
Topic: loading AWS certs from SPIFFS
Replies: 8
Views: 142

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&qu...
by Trialblazer47
Thu Feb 22, 2018 6:56 am
Forum: General Discussion
Topic: loading AWS certs from SPIFFS
Replies: 8
Views: 142

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_L...
by Trialblazer47
Wed Feb 21, 2018 8:49 pm
Forum: General Discussion
Topic: loading AWS certs from SPIFFS
Replies: 8
Views: 142

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: '??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????...
by Trialblazer47
Wed Feb 21, 2018 7:36 pm
Forum: General Discussion
Topic: loading AWS certs from SPIFFS
Replies: 8
Views: 142

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...
by Trialblazer47
Sat Feb 10, 2018 6:55 pm
Forum: General Discussion
Topic: BT: notification already registered
Replies: 0
Views: 99

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...
by Trialblazer47
Sat Feb 10, 2018 6:48 pm
Forum: Sample Code
Topic: Sending command fomr gatt client to server (central to peripheric)
Replies: 5
Views: 1299

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.

Code: Select all

E (279690) BT: notification already registered


And it does not register notification again once it has registered notification and disconnects.
Please help.
by Trialblazer47
Thu Feb 08, 2018 1:10 pm
Forum: Sample Code
Topic: Sending command fomr gatt client to server (central to peripheric)
Replies: 5
Views: 1299

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 ...
by Trialblazer47
Sun Jan 28, 2018 3:01 pm
Forum: General Discussion
Topic: Looking for consultant/contractor help with AWS IoT on ESP32
Replies: 2
Views: 319

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} # ...