nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
slm_defines.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2021 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
7#ifndef SLM_DEFINES_
8#define SLM_DEFINES_
9
10#include <nrf_socket.h>
11#include "slm_trap_macros.h"
12
13#define INVALID_SOCKET -1
14#define INVALID_SEC_TAG -1
15#define INVALID_ROLE -1
16#define INVALID_DTLS_CID -1
17
18enum {
19 /* The command ran successfully and doesn't want the automatic response to be sent. */
20 SILENT_AT_COMMAND_RET = __ELASTERROR,
21};
22
24#define SLM_AT_MAX_CMD_LEN 4096
25#define SLM_AT_MAX_RSP_LEN 2100
26
28#define SLM_MAX_PAYLOAD_SIZE 1024
29#define SLM_MAX_MESSAGE_SIZE NRF_SOCKET_TLS_MAX_MESSAGE_SIZE
30
31#define SLM_MAX_URL 128
32#define SLM_MAX_FILEPATH 128
33#define SLM_MAX_USERNAME 32
34#define SLM_MAX_PASSWORD 32
36#define SLM_NRF52_BLK_SIZE 4096
37#define SLM_NRF52_BLK_TIME 2000
39#define POWER_PIN_IS_ENABLED (CONFIG_SLM_POWER_PIN != -1)
40#define INDICATE_PIN_IS_ENABLED (CONFIG_SLM_INDICATE_PIN != -1)
41
42#endif
@ SILENT_AT_COMMAND_RET
Definition: slm_defines.h:20