mbed_app.json configured to operate on senet
To enable cayenne, edit mbed_app.json
, assign pins for desired function
Example:
"cayenne": { "help": "compile main_cayenne.cpp instead of main.cpp", "value": 1 }, "analog_in_pin": { "help": "PA_0, PA_4, PA_5", "value": "PA_0" }, "analog_out_pin": { "help": "PA_0, PB_5, PB_10, PB_11", "value": "PB_11" }, "_digital_out_pin": { "help": "", "value": "" }
Diff: main.cpp
- Revision:
- 61:9a84b5964019
- Parent:
- 56:39847849d219
--- a/main.cpp Wed Apr 08 22:33:12 2020 +0000 +++ b/main.cpp Mon May 04 03:05:28 2020 +0000 @@ -14,6 +14,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +#ifndef MBED_CONF_APP_CAYENNE + #include <stdio.h> #include "lorawan/LoRaWANInterface.h" @@ -268,3 +270,4 @@ } // EOF +#endif /* MBED_CONF_APP_CAYENNE */ \ No newline at end of file