nRF Connect SDK API 3.1.99
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_ROLE -1
15#define INVALID_DTLS_CID -1
16
17enum {
18 /* The command ran successfully and doesn't want the automatic response to be sent. */
19 SILENT_AT_COMMAND_RET = __ELASTERROR,
20};
21
23#define SLM_AT_MAX_CMD_LEN 4096
24#define SLM_AT_MAX_RSP_LEN 2100
25
27#define SLM_MAX_PAYLOAD_SIZE 1024
28#define SLM_MAX_MESSAGE_SIZE NRF_SOCKET_TLS_MAX_MESSAGE_SIZE
29
30#define SLM_MAX_URL 128
31#define SLM_MAX_FILEPATH 128
32#define SLM_MAX_USERNAME 32
33#define SLM_MAX_PASSWORD 32
35#define SLM_NRF52_BLK_SIZE 4096
36#define SLM_NRF52_BLK_TIME 2000
38#define POWER_PIN_IS_ENABLED (CONFIG_SLM_POWER_PIN != -1)
39#define INDICATE_PIN_IS_ENABLED (CONFIG_SLM_INDICATE_PIN != -1)
40
41#endif
@ SILENT_AT_COMMAND_RET
Definition slm_defines.h:19