Search found 38 matches

by azz-zza
Wed Jul 08, 2020 6:36 pm
Forum: ESP32 Arduino
Topic: unstable WIFI connection
Replies: 2
Views: 107

Re: unstable WIFI connection

esp32 uses power management features for WiFi, so it turns off the radio in between beacon adverts. TCP packets get held by the access point until the device checks in. Datagrams will be dropped. Turn off modem sleep with `WiFi.setSleep(false);` Thank you. I gave it a try. Will update the thread af...
by azz-zza
Wed Jul 08, 2020 1:01 pm
Forum: ESP32 Arduino
Topic: unstable WIFI connection
Replies: 2
Views: 107

unstable WIFI connection

hello, i most likely doing something incorrect. Appreciate pointing out my mistakes. #include <WiFi.h> const char* ssid = "myssid"; const char* password = "very_big_secret"; void connectToNetwork() { WiFi.begin(ssid, password); while (WiFi.status() != WL_CONNECTED) { delay(1000); Serial.println("Est...
by azz-zza
Tue Jul 07, 2020 10:09 pm
Forum: ESP32 Arduino
Topic: WIFI SOFTAP status
Replies: 0
Views: 72

WIFI SOFTAP status

hello, how do I check that SoftAP is up and running? Case: my application attempts to connect to the existing network ( wifi.begin(ssid,pass) ). If it failes ( WiFi.status != WL_Connect) , the app will stand up a AP ( WiFi.softAP(ssid) ). to check that the module is still connected to the network i ...
by azz-zza
Thu Jul 02, 2020 12:46 pm
Forum: General Discussion
Topic: xTaskCreate: invalid conversion from 'void (*)()' to 'TaskFunction_t {aka void (*)(void*)}'
Replies: 4
Views: 220

Re: xTaskCreate: invalid conversion from 'void (*)()' to 'TaskFunction_t {aka void (*)(void*)}'

Thank you very much. Works perfectly.
The issue was not in the the xTaskCreate, but rather that callback procedure should have parameter.
by azz-zza
Thu Jul 02, 2020 4:44 am
Forum: General Discussion
Topic: xTaskCreate: invalid conversion from 'void (*)()' to 'TaskFunction_t {aka void (*)(void*)}'
Replies: 4
Views: 220

Re: xTaskCreate: invalid conversion from 'void (*)()' to 'TaskFunction_t {aka void (*)(void*)}'

ohhh.. (facepalm)....

Thank you so much.

and how do i call the createTask if i do not need any params passed to the procedure?
by azz-zza
Wed Jul 01, 2020 10:24 pm
Forum: General Discussion
Topic: xTaskCreate: invalid conversion from 'void (*)()' to 'TaskFunction_t {aka void (*)(void*)}'
Replies: 4
Views: 220

xTaskCreate: invalid conversion from 'void (*)()' to 'TaskFunction_t {aka void (*)(void*)}'

Hello, i can not figure out what am i doing incorrectly here. Please advise. void publish_data() { .... } void setup () { .... TaskHandle_t xHandle = NULL; BaseType_t xReturned = xTaskCreate(&publish_data, (const char*) "Task", 4048, (void*) 1, NULL, &xHandle); ..... src/main.cpp: In function 'void ...
by azz-zza
Sun Jun 28, 2020 8:00 pm
Forum: ESP32 Arduino
Topic: {SOLVED} poor wifi performance
Replies: 1
Views: 170

Re: poor wifi performance

nothing solves mysterious issues better than a good slap across the face - reattaching to the router solved the problem.
by azz-zza
Sun Jun 28, 2020 7:18 pm
Forum: ESP32 Arduino
Topic: {SOLVED} poor wifi performance
Replies: 1
Views: 170

{SOLVED} poor wifi performance

hello, the performance and stability of the network are really poor. I'm not sure where to look for the issues. Your advice will be highly appreciated. The network performance of this board is piss poor when it is connected to a router ( 6 feet/2m away): ping from the laptop: From 192.168.1.5 icmp_s...
by azz-zza
Thu Mar 26, 2020 5:14 am
Forum: ESP32 IDF
Topic: c++ class with task and timer
Replies: 2
Views: 1000

Re: c++ class with task and timer

Cryptkeeper, thank you for the suggestion. Unfortunately it didn't solve the problem. and the code fails with slightly different error. setup(): ... Serial.println(" entering setup_tasks"); Serial.println (xTaskGetSchedulerState()); Zap* outlet = new Zap(DATA_PIN, &eventGroup,bit_time, "Task UNO") ;...
by azz-zza
Mon Mar 09, 2020 9:59 pm
Forum: ESP32 IDF
Topic: c++ class with task and timer
Replies: 2
Views: 1000

c++ class with task and timer

//added code tag Hello, im attempting to incorporate the task and the timer creation into c++ class. And, predictably, this is not working for me. I appreciate your feedback: #ifndef _ZAP_H #define _ZAP_H #include <Outlet.h> class Zap : public Outlet { private: int _channel = 1 ; //CHANNEL 1 //int D...

Go to advanced search