Page 1 of 1

Debug-messages wifi:Association refused temporarily, comeback time 0 mSec

Posted: 10. Nov 2022, 07:31
by StefanL38
Hi everybody,

I tested the PushSafer-Arduino-Demo-code and got some debug-message that are very new to me

After uploading the first connecting to the WiFi was quickly successfull.
And the Pushnotification was sent.

Then I pressed Reset on my ESP32 nodeMCU-board to restart the software
then I got a bunch of these messages

Code: Select all

08:14:18.465 -> E (734) wifi:Association refused temporarily, comeback time 0 mSec
08:14:18.465 -> E (738) wifi:Association refused temporarily, comeback time 0 mSec
08:14:18.465 -> E (743) wifi:Association refused temporarily, comeback time 0 mSec
08:14:18.465 -> E (750) wifi:Association refused temporarily, comeback time 0 mSec
08:14:18.465 -> E (767) wifi:Association refused temporarily, comeback time 0 mSec
08:14:18.465 -> E (774) wifi:Association refused temporarily, comeback time 0 mSec
08:14:18.500 -> E (791) wifi:Association refused temporarily, comeback time 0 mSec
08:14:18.500 -> E (801) wifi:Association refused temporarily, comeback time 0 mSec
After some seconds the connection was established and the push-notification send
But I have never seen such messages in the serial monitor before
I guess these messages were printed because debugging is activated

What do the messages mean?

This is the code that I used

Code: Select all

#if defined(ESP32)
#include <WiFi.h>
char deviceType[] = "ESP32";
#else
#include <ESP8266WiFi.h>
char deviceType[] = "ESP8266";
#endif
/*#include <WiFiClientSecure.h>*/
#include <WiFiClient.h>
#include <Pushsafer.h>

// Initialize Wifi connection to the router

char ssid[] = "";     // your network SSID (name)
char password[] = ""; // your network key

// Pushsafer private or alias key
#define PushsaferKey ""

/*WiFiClientSecure client;*/
WiFiClient client;
Pushsafer pushsafer(PushsaferKey, client);

void setup() {
  Serial.begin(115200);
  Serial.println("Setup-Start");

  // Set WiFi to station mode and disconnect from an AP if it was Previously
  // connected
  WiFi.mode(WIFI_STA);
  WiFi.disconnect();
  delay(100);

  // Attempt to connect to Wifi network:
  Serial.print("Connecting Wifi: ");
  Serial.println(ssid);
  WiFi.begin(ssid, password);

  while (WiFi.status() != WL_CONNECTED) {
    Serial.print(".");
    delay(500);
  }

  Serial.println("");
  Serial.println("WiFi connected");
  Serial.print("IP address: ");
  Serial.println(WiFi.localIP());

  pushsafer.debug = true;

  // Take a look at the Pushsafer.com API at
  // https://www.pushsafer.com/en/pushapi
  
  struct PushSaferInput input;
  input.title = deviceType;//"Hello!";
  input.sound = "3";
  input.vibration = "3";
  input.icon = "20";
  input.iconcolor = "#FFCCCC";
  input.priority = "3";
  input.message = "vibrate input.answer = 1";
  input.device = "a";
  input.url = "https://www.pushsafer.com";
  input.urlTitle = "Open Pushsafer.com";
  input.picture = "";
  input.picture2 = "";
  input.picture3 = "";
  input.time2live = "";
  input.retry = "";
  input.expire = "";
  input.answer = "1";

  Serial.println(pushsafer.sendEvent(input));
  Serial.println("Sent");
  
  // client.stop();
}

void loop() {
}
best regards Stefan

Re: Debug-messages wifi:Association refused temporarily, comeback time 0 mSec

Posted: 10. Nov 2022, 17:18
by admin
Hi,

the error messages do not come from the pushsafer but from the wifi modul.

Kevin