Example program running mbedClient over UbloxATCellularInterface or OnboardCellularInterface for the C030 platform.

Dependencies:   ublox-cellular-base ublox-at-cellular-interface ublox-ppp-cellular-interface ublox-at-cellular-interface-n2xx ublox-cellular-base-n2xx

Committer:
RobMeades
Date:
Wed Feb 28 14:58:04 2018 +0000
Revision:
16:d4f4a9dfa938
Parent:
1:9f355da25904
Update to latest libraries and replace UbloxPPPCellularInterface with OnboardCellularInterface.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
rob.meades@u-blox.com 1:9f355da25904 1 /*
rob.meades@u-blox.com 1:9f355da25904 2 * Copyright (c) 2016 ARM Limited. All rights reserved.
rob.meades@u-blox.com 1:9f355da25904 3 * SPDX-License-Identifier: Apache-2.0
rob.meades@u-blox.com 1:9f355da25904 4 * Licensed under the Apache License, Version 2.0 (the License); you may
rob.meades@u-blox.com 1:9f355da25904 5 * not use this file except in compliance with the License.
rob.meades@u-blox.com 1:9f355da25904 6 * You may obtain a copy of the License at
rob.meades@u-blox.com 1:9f355da25904 7 *
rob.meades@u-blox.com 1:9f355da25904 8 * http://www.apache.org/licenses/LICENSE-2.0
rob.meades@u-blox.com 1:9f355da25904 9 *
rob.meades@u-blox.com 1:9f355da25904 10 * Unless required by applicable law or agreed to in writing, software
rob.meades@u-blox.com 1:9f355da25904 11 * distributed under the License is distributed on an AS IS BASIS, WITHOUT
rob.meades@u-blox.com 1:9f355da25904 12 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
rob.meades@u-blox.com 1:9f355da25904 13 * See the License for the specific language governing permissions and
rob.meades@u-blox.com 1:9f355da25904 14 * limitations under the License.
rob.meades@u-blox.com 1:9f355da25904 15 */
rob.meades@u-blox.com 1:9f355da25904 16 #ifndef MBED_CLIENT_CONFIG_H
rob.meades@u-blox.com 1:9f355da25904 17 #define MBED_CLIENT_CONFIG_H
rob.meades@u-blox.com 1:9f355da25904 18
rob.meades@u-blox.com 1:9f355da25904 19
rob.meades@u-blox.com 1:9f355da25904 20 // Defines the number of times client should try re-connection towards
rob.meades@u-blox.com 1:9f355da25904 21 // Server in case of connectivity loss , also defines the number of CoAP
rob.meades@u-blox.com 1:9f355da25904 22 // re-transmission attempts.Default value is 3
rob.meades@u-blox.com 1:9f355da25904 23 #define M2M_CLIENT_RECONNECTION_COUNT 3
rob.meades@u-blox.com 1:9f355da25904 24
rob.meades@u-blox.com 1:9f355da25904 25 // Defines the interval (in seconds) in which client should try re-connection towards
rob.meades@u-blox.com 1:9f355da25904 26 // Server in case of connectivity loss , also use the same interval for CoAP
rob.meades@u-blox.com 1:9f355da25904 27 // re-transmission attempts. Default value is 5 seconds
rob.meades@u-blox.com 1:9f355da25904 28 #define M2M_CLIENT_RECONNECTION_INTERVAL 5
rob.meades@u-blox.com 1:9f355da25904 29
rob.meades@u-blox.com 1:9f355da25904 30 // Defines the keep-alive interval (in seconds) in which client should send keep alive
rob.meades@u-blox.com 1:9f355da25904 31 // pings to server while connected through TCP mode. Default value is 300 seconds
rob.meades@u-blox.com 1:9f355da25904 32 #define M2M_CLIENT_TCP_KEEPALIVE_TIME 300
rob.meades@u-blox.com 1:9f355da25904 33
rob.meades@u-blox.com 1:9f355da25904 34 // Defines the maximum CoAP messages that client can hold, maximum value is 6
rob.meades@u-blox.com 1:9f355da25904 35 #define SN_COAP_DUPLICATION_MAX_MSGS_COUNT 2
rob.meades@u-blox.com 1:9f355da25904 36
rob.meades@u-blox.com 1:9f355da25904 37 // Defines the size of blockwise CoAP messages that client can handle.
rob.meades@u-blox.com 1:9f355da25904 38 // The values that can be defined uust be 2^x and x is at least 4.
rob.meades@u-blox.com 1:9f355da25904 39 // Suitable values: 0, 16, 32, 64, 128, 256, 512 and 1024
rob.meades@u-blox.com 1:9f355da25904 40 #define SN_COAP_MAX_BLOCKWISE_PAYLOAD_SIZE 1024
rob.meades@u-blox.com 1:9f355da25904 41
rob.meades@u-blox.com 1:9f355da25904 42 // Many pure LWM2M servers doen't accept 'obs' text in registration message.
rob.meades@u-blox.com 1:9f355da25904 43 // While using Client against such servers, this flag can be set to define to
rob.meades@u-blox.com 1:9f355da25904 44 // disable client sending 'obs' text for observable resources.
rob.meades@u-blox.com 1:9f355da25904 45 #undef COAP_DISABLE_OBS_FEATURE
rob.meades@u-blox.com 1:9f355da25904 46
rob.meades@u-blox.com 1:9f355da25904 47 // Disable Bootstrap functionality in client in order to reduce code size, if bootstrap
rob.meades@u-blox.com 1:9f355da25904 48 // functionality is not required.
rob.meades@u-blox.com 1:9f355da25904 49 #undef M2M_CLIENT_DISABLE_BOOTSTRAP_FEATURE
rob.meades@u-blox.com 1:9f355da25904 50
rob.meades@u-blox.com 1:9f355da25904 51 #endif // MBED_CLIENT_CONFIG_H
rob.meades@u-blox.com 1:9f355da25904 52