Search found 60 matches

by Trialblazer47
Fri Aug 25, 2017 9:00 am
Forum: Sample Code
Topic: Full example of using spiffs with ESP32
Replies: 19
Views: 39879

Re: Full example of using spiffs with ESP32

Hi I have some issue compiling this library... I posted it as issue on the git.. https://github.com/loboris/ESP32_spiffs_example/issues/5 Can someone tell me whats the problem ? this is what happens on compiling . ... AR libmdns.a CC micro-ecc/uECC.o AR libmicro-ecc.a AR libmkspiffs.a usage: mkdir [...
by Trialblazer47
Thu Aug 24, 2017 11:35 am
Forum: General Discussion
Topic: wifi sleeps after 30 mins and restarts itself.
Replies: 0
Views: 2703

wifi sleeps after 30 mins and restarts itself.

I am testing a example code for MQTT https://github.com/tuanpmt/esp32-mqtt and it works fine for a while but after every 30mins the devices does something that is not in the code. here is the debug message. [MQTT INFO] MQTT_MSG_TYPE_PINGRESP [MQTT INFO] Sending pingreq [MQTT INFO] Read len 2 [MQTT I...
by Trialblazer47
Wed Aug 23, 2017 1:22 pm
Forum: General Discussion
Topic: BLE disconnect event??
Replies: 9
Views: 15591

Re: BLE disconnect event??

later the issue was this [0;31mE (30562) BT: btc_search_callback BLE observe complete. Num Resp 5 .[0m .[0;32mI (30562) GATTC_DEMO: GAP CB EVT: 3.[0m .[0;32mI (35742) GATTC_DEMO: Ticker.[0m ***ERROR*** A stack overflow in task Task_ticker has been detected. abort() was called at PCGuru Meditation Er...
by Trialblazer47
Wed Aug 23, 2017 1:04 pm
Forum: General Discussion
Topic: BLE disconnect event??
Replies: 9
Views: 15591

Re: BLE disconnect event??

thanks for quick reply. I don't know How I missed that ? anyways I want to keep that task to periodically check flags(that device is connected to other BLE device, or scanning is on ) if not than start scanning again. void ticker(void *params) { while(1){ vTaskDelay( (Scanning_duration+5)*1000 / por...
by Trialblazer47
Wed Aug 23, 2017 12:31 pm
Forum: General Discussion
Topic: BLE disconnect event??
Replies: 9
Views: 15591

Re: BLE disconnect event??

is there anyway we can know scanning is done? I tried with a task that starts scanning after scan interval. but adding that task breaks the app. void ticker(void *params) { vTaskDelay( (Scanning_duration+5)*1000 / portTICK_RATE_MS); ESP_LOGI(GATTC_TAG,"Ticker"); // dev.scanning=false; } void app_mai...
by Trialblazer47
Wed Aug 02, 2017 9:51 am
Forum: General Discussion
Topic: BLE disconnect event??
Replies: 9
Views: 15591

Re: BLE disconnect event??

Yes I understand that, but I am making something like a hub for BLE devices and it will be powered. those devices might advertise DATA at any time, Although those devices have the capabilities to store data if it fails to connect to hub. What do you think should the approach be ? A sync time when de...
by Trialblazer47
Tue Aug 01, 2017 6:50 pm
Forum: General Discussion
Topic: BLE disconnect event??
Replies: 9
Views: 15591

Re: BLE disconnect event??

Yes it takes time for even the peer device to disconnect if I power of ESP32 while it is connected. Another issue arised. Regarding Connection. what I want is to start scaning and once connected stop scaning(this is done with in demo) but then After I am done with my device I want to disconnect and ...
by Trialblazer47
Tue Aug 01, 2017 6:27 pm
Forum: General Discussion
Topic: how do I go with logical flow for BLE GATT client?
Replies: 5
Views: 7027

Re: how do I go with logical flow for BLE GATT client?

Thanks for it. I went ahead with creating a task and handleing things there it made things easy for me and acts on flags and Data I set in Callbacks. Yes I think giving enough stack size for begining is fine but I will have to figure out how to trim the stack later to because I think I would be usin...
by Trialblazer47
Tue Aug 01, 2017 5:26 am
Forum: General Discussion
Topic: how do I go with logical flow for BLE GATT client?
Replies: 5
Views: 7027

Re: how do I go with logical flow for BLE GATT client?

Yes I read last night about task in freeRTOS I think it should help. Basically I wanted to set flags and store data in Events(switch case) thn other function(task ) would do the logic part so that switch case are neat and main logic for porgram is seperate from the BLE functionality. Thanks I would ...
by Trialblazer47
Mon Jul 31, 2017 6:47 pm
Forum: General Discussion
Topic: how do I go with logical flow for BLE GATT client?
Replies: 5
Views: 7027

how do I go with logical flow for BLE GATT client?

I have from gattc_demo made basic code that connects to my pheripheral device(NRF51822 GATT Server). I can now connect find service and characteristics of my interest and then enable notification I am also able to send data to NRF51 and it respond back with the data I asked it for. But there is much...