Code Monkey home page Code Monkey logo

esphelper32's People

Contributors

itkindaworks avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

esphelper32's Issues

WiFi.macAddress(mac) is called before mac address is vailable

bool ESPHelper32::begin(){
if(_ssidSet){
// Generate client name based on MAC address and last 8 bits of microsecond counter
_clientName += "esp32-";
uint8_t mac[6];
// WiFi.macAddress(mac);
// _clientName += macToStr(mac);

	//set the wifi mode to station and begin the wifi (connect using either ssid or ssid/pass)
	WiFi.mode(WIFI_STA);
	if(_passSet){WiFi.begin(_currentNet.ssid, _currentNet.pass);}
	else{WiFi.begin(_currentNet.ssid);}

	WiFi.macAddress(mac);
	_clientName += macToStr(mac);

Wifi Connection problem

I really excited when i heard ESPHelper32 but i couldn't connect wifi.

I have ESP32 development board. I can use it is own library to connect wifi but when i try to connect with ESPHelper32 it continuously rebooting.

ets Jun 8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0010,len:4
load:0x3fff0014,len:708
load:0x40078000,len:0
load:0x40078000,len:11460
entry 0x400789f4
E (592) wifi: esp_wifi_set_config 991 wifi is not init
/Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/freertos/./queue.c:1438 (xQueueGenericReceive)- assert failed!
abort() was called at PC 0x4008486d on core 0

Backtrace: 0x400870fc:0x3ffe3840 0x400871fb:0x3ffe3860 0x4008486d:0x3ffe3880 0x40115681:0x3ffe38c0 0x40082f2e:0x3ffe38e0 0x40083239:0x3ffe3900 0x40083453:0x3ffe3930 0x40115745:0x3ffe3960 0x401158ba:0x3ffe3990 0x4011590f:0x3ffe39b0 0x401078ec:0x3ffe39d0 0x400fe773:0x3ffe39f0 0x400f7832:0x3ffe3a20 0x400d2299:0x3ffe3a40 0x400d22b3:0x3ffe3aa0 0x400d251c:0x3ffe3ad0 0x400d14ee:0x3ffe3b60 0x400d15d1:0x3ffe3b80 0x400d148d:0x3ffe3bc0 0x400dff03:0x3ffe3be0 0x400812b4:0x3ffe3c00 0x4008148c:0x3ffe3c30 0x4007884e:0x3ffe3c50 0x400788b5:0x3ffe3c80 0x400789ee:0x3ffe3cb0 0x40078b13:0x3ffe3e70 0x40007c31:0x3ffe3eb0 0x4000073d:0x3ffe3f20

Rebooting...

My sketch (BasicUse in ESPHelper32 library) is here:

#include "ESPHelper32.h"

//defualt net info for unconfigured devices
netInfo homeNet = { .mqttHost = "",     //can be blank if not using MQTT
					.mqttUser = "",   //can be blank
					.mqttPass = "",   //can be blank
					.mqttPort = 1883,         //default port for MQTT is 1883 - only chance if needed.
					.ssid = "Kesici_Guler", 
					.pass = "1237896540",
					.otaPassword = "YOUR OTA PASS",
					.hostname = "NEW-ESP8266"}; 

ESPHelper32 myESP(&homeNet);

void setup() {
	
	Serial.begin(115200);	//start the serial line
	delay(500);

	Serial.println("Starting Up, Please Wait...");

	myESP.addSubscription("/test");

	myESP.setMQTTCallback(callback);
	myESP.begin();
	
	Serial.println("Initialization Finished.");
}

void loop(){
	myESP.loop();  //run the loop() method as often as possible - this keeps the network services running

	//Put application code here

	yield();
}

void callback(char* topic, uint8_t* payload, unsigned int length) {
	//put mqtt callback code here
}

I am 100% sure that my wifi SSID and pass are correct.
I also tried to connect my mobile hot spot but nothing changed.
How can i solve this issue?

Metro / Chrono

Hi,
thanks you have ported the lib to ESP32....
i am just wondering, why you are still you the deprecated 5 Year old Version of Metro....

Metro works well, but this is the new version : https://github.com/SofaPirate/Chrono

maybe you should adjust your code to Chrono ?

thanks
Markus

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.