Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
6 years, 6 months ago.
Where is MBED_CONF_APP
I was able to configure the hardware in mbed_app.json but I would know where are declared: MBED_CONF_APP_WIFI_SHIELD MBED_CONF_APP_WIFI_TX MBED_CONF_APP_WIFI_RX MBED_CONF_APP_WIFI_SSID etc ...
And how is interjected the .json by the compiler. Unfortunately, I did not find any information in documentation Thanks for reply
Question relating to:
1 Answer
6 years, 6 months ago.
In your code, if you have
#if defined(MBED_CONF_APP_TEST)
than mbed.json looks like this
{ "config": { "test": { "help": "test help", "value": true } }, "target_overrides": { "*": { "platform.stdio-convert-newlines": true, "platform.stdio-baud-rate": 115200 } } }
Sorry, but I do not understand how the compiler understands that "test" in the .json file is associated with MBED_CONF_APP_TEST in the cpp file. This is neither the same syntax nor the same case. Do you know if there is documentation
posted by 01 Jun 2018if you need to define <<code>>MBED_CONF_APP_WIFI_SSID<</code>>
your mbed.json will looks like <<code>>"config": {
"wifi-ssid": {
"help": "Enter SSID here",
"value": "nameOfWifi"
}
}
<</code>>
your mbed.json will looks like <<code>>"config": {
"wifi-ssid": {
"help": "Enter SSID here",
"value": "nameOfWifi"
}
}
<</code>>
Assigned to
6 years, 6 months ago.This means that the question has been accepted and is being worked on.