example using mbed loramac with GPS in application layer

Dependencies:   lib_gps

This repository can work on NAmote72.

This main.cpp generates Cayenne LPP GPS payload.

See mbed documentation for provisioning instructions.

Committer:
Wayne Roberts
Date:
Thu Jan 03 16:18:09 2019 -0800
Revision:
0:2e040cc7f7b8
initial commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Wayne Roberts 0:2e040cc7f7b8 1 /**
Wayne Roberts 0:2e040cc7f7b8 2 * Copyright (c) 2017, Arm Limited and affiliates.
Wayne Roberts 0:2e040cc7f7b8 3 * SPDX-License-Identifier: Apache-2.0
Wayne Roberts 0:2e040cc7f7b8 4 *
Wayne Roberts 0:2e040cc7f7b8 5 * Licensed under the Apache License, Version 2.0 (the "License");
Wayne Roberts 0:2e040cc7f7b8 6 * you may not use this file except in compliance with the License.
Wayne Roberts 0:2e040cc7f7b8 7 * You may obtain a copy of the License at
Wayne Roberts 0:2e040cc7f7b8 8 *
Wayne Roberts 0:2e040cc7f7b8 9 * http://www.apache.org/licenses/LICENSE-2.0
Wayne Roberts 0:2e040cc7f7b8 10 *
Wayne Roberts 0:2e040cc7f7b8 11 * Unless required by applicable law or agreed to in writing, software
Wayne Roberts 0:2e040cc7f7b8 12 * distributed under the License is distributed on an "AS IS" BASIS,
Wayne Roberts 0:2e040cc7f7b8 13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Wayne Roberts 0:2e040cc7f7b8 14 * See the License for the specific language governing permissions and
Wayne Roberts 0:2e040cc7f7b8 15 * limitations under the License.
Wayne Roberts 0:2e040cc7f7b8 16 */
Wayne Roberts 0:2e040cc7f7b8 17
Wayne Roberts 0:2e040cc7f7b8 18 #ifndef MBEDTLS_LORA_CONFIG_H
Wayne Roberts 0:2e040cc7f7b8 19 #define MBEDTLS_LORA_CONFIG_H
Wayne Roberts 0:2e040cc7f7b8 20
Wayne Roberts 0:2e040cc7f7b8 21 /*
Wayne Roberts 0:2e040cc7f7b8 22 * Configure mbedtls for LoRa stack.
Wayne Roberts 0:2e040cc7f7b8 23 *
Wayne Roberts 0:2e040cc7f7b8 24 * These settings are just a customization of the main mbedtls config
Wayne Roberts 0:2e040cc7f7b8 25 * mbed-os/features/mbedtls/inc/mbedtls/config.h
Wayne Roberts 0:2e040cc7f7b8 26 */
Wayne Roberts 0:2e040cc7f7b8 27
Wayne Roberts 0:2e040cc7f7b8 28 // Ensure LoRa required ciphers are enabled
Wayne Roberts 0:2e040cc7f7b8 29 #define MBEDTLS_CIPHER_C
Wayne Roberts 0:2e040cc7f7b8 30 #define MBEDTLS_AES_C
Wayne Roberts 0:2e040cc7f7b8 31 #define MBEDTLS_CMAC_C
Wayne Roberts 0:2e040cc7f7b8 32
Wayne Roberts 0:2e040cc7f7b8 33 // Reduce ROM usage by optimizing some mbedtls features.
Wayne Roberts 0:2e040cc7f7b8 34 // These are only reference configurations for this LoRa example application.
Wayne Roberts 0:2e040cc7f7b8 35 // Other LoRa applications might need different configurations.
Wayne Roberts 0:2e040cc7f7b8 36 #define MBEDTLS_AES_FEWER_TABLES
Wayne Roberts 0:2e040cc7f7b8 37
Wayne Roberts 0:2e040cc7f7b8 38 #undef MBEDTLS_GCM_C
Wayne Roberts 0:2e040cc7f7b8 39 #undef MBEDTLS_CHACHA20_C
Wayne Roberts 0:2e040cc7f7b8 40 #undef MBEDTLS_CHACHAPOLY_C
Wayne Roberts 0:2e040cc7f7b8 41 #undef MBEDTLS_POLY1305_C
Wayne Roberts 0:2e040cc7f7b8 42
Wayne Roberts 0:2e040cc7f7b8 43 #endif /* MBEDTLS_LORA_CONFIG_H */