5 years, 11 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

5 years, 11 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 Christian Dupaty 01 Jun 2018

if 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>>

posted by Pavel S 01 Jun 2018

if you need to define MBED_CONF_APP_WIFI_SSID your mbed.json will looks like

"config": { "wifi-ssid": { "help": "Enter SSID here", "value": "nameOfWifi" } }

posted by Pavel S 01 Jun 2018

Assigned to Christian Dupaty 5 years, 11 months ago.

This means that the question has been accepted and is being worked on.