nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
lwm2m_codec_defines.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2022 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
7#ifndef LWM2M_CODEC_DEFINES_H__
8#define LWM2M_CODEC_DEFINES_H__
9
10/* LwM2M read-write flag. */
11#define LWM2M_RES_DATA_FLAG_RW 0
12
13/* Location object RIDs. */
14#define LATITUDE_RID 0
15#define LONGITUDE_RID 1
16#define ALTITUDE_RID 2
17#define RADIUS_RID 3
18#define LOCATION_TIMESTAMP_RID 5
19#define SPEED_RID 6
20
21/* Connectivity monitoring object RIDs. */
22#define NETWORK_BEARER_ID 0
23#define AVAIL_NETWORK_BEARER_ID 1
24/* Radio Signal Strength */
25#define RSS 2
26#define IP_ADDRESSES 4
27#define APN 7
28#define CELLID 8
29#define SMNC 9
30#define SMCC 10
31#define LAC 12
32
33/* Device object RIDs. */
34#define FIRMWARE_VERSION_RID 3
35#define SOFTWARE_VERSION_RID 19
36#define DEVICE_SERIAL_NUMBER_ID 2
37#define CURRENT_TIME_RID 13
38#define POWER_SOURCE_VOLTAGE_RID 7
39#define MODEL_NUMBER_RID 1
40#define MANUFACTURER_RID 0
41#define HARDWARE_VERSION_RID 18
42
43#define CONFIGURATION_OBJECT_ID 50009
44#define PASSIVE_MODE_RID 0
45#define LOCATION_TIMEOUT_RID 1
46#define ACTIVE_WAIT_TIMEOUT_RID 2
47#define MOVEMENT_RESOLUTION_RID 3
48#define MOVEMENT_TIMEOUT_RID 4
49#define ACCELEROMETER_ACT_THRESHOLD_RID 5
50#define GNSS_ENABLE_RID 6
51#define NEIGHBOR_CELL_ENABLE_RID 7
52#define ACCELEROMETER_INACT_THRESHOLD_RID 8
53#define ACCELEROMETER_INACT_TIMEOUT_RID 9
54
55/* LTE-FDD (LTE-M) bearer & NB-IoT bearer. */
56#define LTE_FDD_BEARER 6U
57#define NB_IOT_BEARER 7U
58
59/* Temperature sensor metadata. */
60#define BME680_TEMP_MIN_RANGE_VALUE -40.0
61#define BME680_TEMP_MAX_RANGE_VALUE 85.0
62#define BME680_TEMP_UNIT "Celsius degrees"
63
64/* Humidity sensor metadata. */
65#define BME680_HUMID_MIN_RANGE_VALUE 0.0
66#define BME680_HUMID_MAX_RANGE_VALUE 100.0
67#define BME680_HUMID_UNIT "%"
68
69/* Pressure sensor metadata. */
70#define BME680_PRESSURE_MIN_RANGE_VALUE 30.0
71#define BME680_PRESSURE_MAX_RANGE_VALUE 110.0
72#define BME680_PRESSURE_UNIT "kPa"
73
74/* Button object. */
75#define BUTTON1_OBJ_INST_ID 0
76#define BUTTON1_APP_NAME "Push button 1"
77#define BUTTON2_OBJ_INST_ID 1
78#define BUTTON2_APP_NAME "Push button 2"
79
80#endif /* LWM2M_CODEC_DEFINES_H */