Actually the default firmware comes with a program which provides a "ESP_DEMO_AP" wifi.
you mean RTOS_SDK_1.1.0 ?
there are ota_demo and a template project.
the ota_demo contains in user_main.c
https://github.com/espressif/ESP32_RTOS ... ser_main.c
Code: Select all
..
/*just for example, you can config them*/
#define SYMMETRY_STRUCTURE_MODE 1
#define SSID "netgear"
#define PASSWORD "espressif"
#define SERVER_IP "192.168.1.11"
..
This one actually has a password which is unknown (at least to me).
this is an example. put your own ssid and password in this "placeholder".
after the defines, the
Code: Select all
void user_init(void)
{
os_printf("SDK version:%s\n", system_get_sdk_version());
wifi_set_opmode(STATION_MODE);
// set AP parameter
struct station_config config;
bzero(&config, sizeof(struct station_config));
sprintf(config.ssid, SSID);
sprintf(config.password, PASSWORD);
wifi_station_set_config(&config);
wifi_set_event_handler_cb(wifi_event_handler_cb);
}
prints this setting short. do you mean this with "which is unknown (at least to me)"?
you can change it by define like in example.
Flashing was the way to go to change the parameters
but I was confused that I could not write via the serial port to the esp. It behaves a bit different than the 8266, which is fine but you need to know (-:
you are right. see the esp31..esp32 as a new chip, not a replacement or other.
btw, have you see the flash tool ? there is a windows flashtool availabel here:
http://esp32.com/viewtopic.php?f=15&t=60
if you use the esptool.py (esp31)
http://esp32.com/viewtopic.php?f=2&t=22#p163
there is a second version (esp32) here:
http://esp32.com/viewtopic.php?f=2&t=22#p191
hope this helps.
best wishes
rudi
