[riot-notifications] [RIOT-OS/RIOT] [Quick Question] ESP8266 esp-wifi ssid and password parameters in .c file ? (#11320)

Gunar Schorcht notifications at github.com
Thu Apr 4 11:58:24 CEST 2019

@mmaxus35 Documentation says:
> These configuration parameter definitions ... can be done either
> - in the `makefile of the project` or
> - at make command line`

There is no word that this could be done in `main.c` as well. You can't do that in your `main.c`. The reason is quite simple and more a basic C question: _Who needs the definitions and who includes what?_ 

`ESP_WIFI_SSID` and `ESP_WIFI_PASS` are not required in `main.c` but in `cpu/esp8266/esp_wifi/esp_wifi_netdev.c`. Since `cpu/esp8266/esp_wifi/esp_wifi_netdev.c` does not include `main.c` (of course), it cannot know your definitions you made in `main.c`. The definitions could only be overriden in a file that is includes by `cpu/esp8266/esp_wifi/esp_wifi_netdev.c`. Since `cpu/esp8266/esp-wifi/esp_wifi_params.h` is the only file that is included, the definitions are used from there.

Please defined according definitions either in your `makefile` or at command line as documented.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190404/45e3af12/attachment.html>

More information about the notifications mailing list