-->
Page 1 of 1

Eclipse fails to resolve macros definitions - SOLVED

PostPosted: Sun Jan 10, 2021 2:27 pm
by Ron Freimann
I'm trying to write a simple application to connect my ESP-01 to my home AP. For that, in the code I have defined two macros - my APs SSID and password as follows:

Code: Select all#define EXAMPLE_ESP_MAXIMUM_RETRY  5
#define EXAMPLE_ESP_WIFI_SSID Telia-8D67F2
#define EXAMPLE_ESP_WIFI_PASS HUPKG3QHO*****


However Eclipse complains about my macro definitions - "Symbol 'Telia' could not be resolved". It seems like it's trying to find a value for this symbol instead of taking it as a string value.

How can I resolve this issue?

Re: Eclipse fails to resolve macros definitions

PostPosted: Wed Jan 13, 2021 6:34 am
by QuickFix
I've never used Eclipse, but uhm enclose strings between double qoutes? :?

Code: Select all#define EXAMPLE_ESP_MAXIMUM_RETRY  5
#define EXAMPLE_ESP_WIFI_SSID "Telia-8D67F2"
#define EXAMPLE_ESP_WIFI_PASS "HUPKG3QHO*****"

Re: Eclipse fails to resolve macros definitions

PostPosted: Wed Jan 13, 2021 11:23 am
by Ron Freimann
QuickFix wrote:I've never used Eclipse, but uhm enclose strings between double qoutes? :?
Well, that's embarrassing for me, but thanks!
Code: Select all#define EXAMPLE_ESP_MAXIMUM_RETRY  5
#define EXAMPLE_ESP_WIFI_SSID "Telia-8D67F2"
#define EXAMPLE_ESP_WIFI_PASS "HUPKG3QHO*****"

Re: Eclipse fails to resolve macros definitions

PostPosted: Thu Jan 14, 2021 3:53 am
by QuickFix
Ron Freimann wrote:Well, that's embarrassing for me, but thanks!

We all have our off days. ;)