This is a mbed Client sample where ZXing is incorporated, and works on GR-PEACH and GR-LYCHEE.

Dependencies:   DisplayApp AsciiFont

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers mbed_client_config.h Source File

mbed_client_config.h

00001 /*
00002  * Copyright (c) 2016 ARM Limited. All rights reserved.
00003  * SPDX-License-Identifier: Apache-2.0
00004  * Licensed under the Apache License, Version 2.0 (the License); you may
00005  * not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  *
00008  * http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an AS IS BASIS, WITHOUT
00012  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 #ifndef MBED_CLIENT_CONFIG_H
00017 #define MBED_CLIENT_CONFIG_H
00018 
00019 
00020 // Defines the number of times client should try re-connection towards
00021 // Server in case of connectivity loss , also defines the number of CoAP
00022 // re-transmission attempts.Default value is 3
00023 #define M2M_CLIENT_RECONNECTION_COUNT       3
00024 
00025 // Defines the interval (in seconds) in which client should try re-connection towards
00026 // Server in case of connectivity loss , also use the same interval for CoAP
00027 // re-transmission attempts. Default value is 5 seconds
00028 #define M2M_CLIENT_RECONNECTION_INTERVAL    5
00029 
00030 // Defines the keep-alive interval (in seconds) in which client should send keep alive
00031 // pings to server while connected through TCP mode. Default value is 300 seconds
00032 #define M2M_CLIENT_TCP_KEEPALIVE_TIME       300
00033 
00034 // Defines the maximum CoAP messages that client can hold, maximum value is 6
00035 #define SN_COAP_DUPLICATION_MAX_MSGS_COUNT  2
00036 
00037 // Defines the size of blockwise CoAP messages that client can handle.
00038 // The values that can be defined uust be 2^x and x is at least 4.
00039 // Suitable values: 0, 16, 32, 64, 128, 256, 512 and 1024
00040 #define SN_COAP_MAX_BLOCKWISE_PAYLOAD_SIZE  512
00041 
00042 // Many pure LWM2M servers doen't accept 'obs' text in registration message.
00043 // While using Client against such servers, this flag can be set to define to
00044 // disable client sending 'obs' text for observable resources.
00045 #undef COAP_DISABLE_OBS_FEATURE
00046 
00047 // Disable Bootstrap functionality in client in order to reduce code size, if bootstrap
00048 // functionality is not required.
00049 #undef M2M_CLIENT_DISABLE_BOOTSTRAP_FEATURE
00050 
00051 #endif // MBED_CLIENT_CONFIG_H
00052