Daniel Knox / RN2483

Dependents:   rn2483-TestProgram

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers StringLiterals.h Source File

StringLiterals.h

00001 /*
00002 * Copyright (c) 2016 Dan Knox. All rights reserved.
00003 *
00004 * This file is part of RN2483.
00005 *
00006 * RN2483 is free software: you can redistribute it and/or modify
00007 * it under the terms of the GNU Lesser General Public License as
00008 * published by the Free Software Foundation, either version 3 of
00009 * the License, or(at your option) any later version.
00010 *
00011 * RN2483 is distributed in the hope that it will be useful,
00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00014 * GNU Lesser General Public License for more details.
00015 *
00016 * You should have received a copy of the GNU Lesser General Public
00017 * License along with RN2483.  If not, see
00018 * <http://www.gnu.org/licenses/>.
00019 */
00020 
00021 #ifndef _STRINGLITERALS_h
00022 #define _STRINGLITERALS_h
00023 
00024 #define CRLF "\r\n"
00025 
00026 #define STR_RESULT_OK "ok"
00027 #define STR_RESULT_INVALID_PARAM "invalid_param"
00028 #define STR_RESULT_MAC_ERROR "mac_err"
00029 #define STR_RESULT_MAC_RX "mac_rx"
00030 #define STR_RESULT_MAC_TX_OK "mac_tx_ok"
00031 
00032 #define STR_RESULT_NOT_JOINED "not_joined"
00033 #define STR_RESULT_NO_FREE_CHANNEL "no_free_ch"
00034 #define STR_RESULT_SILENT "silent"
00035 #define STR_RESULT_FRAME_COUNTER_ERROR "frame_counter_err_rejoin_needed"
00036 #define STR_RESULT_BUSY "busy"
00037 #define STR_RESULT_MAC_PAUSED "mac_paused"
00038 #define STR_RESULT_INVALID_DATA_LEN "invalid_data_len"
00039 
00040 #define STR_CMD_RESET "sys reset"
00041 #define STR_DEVICE_TYPE_RN "RN"
00042 #define STR_DEVICE_TYPE_RN2483 "RN2483"
00043 #define STR_DEVICE_TYPE_RN2903 "RN2903"
00044 
00045 #define STR_CMD_SET "mac set "
00046 #define STR_CMD_SAVE "mac save"
00047 #define STR_RETRIES "retx "
00048 #define STR_DEV_ADDR "devaddr "
00049 #define STR_APP_SESSION_KEY "appskey "
00050 #define STR_NETWORK_SESSION_KEY "nwkskey "
00051 #define STR_DEV_EUI "deveui "
00052 #define STR_APP_EUI "appeui "
00053 #define STR_APP_KEY "appkey "
00054 #define STR_ADR "adr "
00055 #define STR_PWR_IDX "pwridx "
00056 #define STR_LNK_CHK "linkchk "
00057 #define STR_MAC_FORCEENABLE "mac forceENABLE"
00058 #define STR_BAT "bat "
00059 #define STR_DATARATE "dr "
00060 
00061 #define STR_CH_FREQ "ch freq "
00062 #define STR_CH_DCYCLE "ch dcycle "
00063 #define STR_CH_DRRANGE "ch drrange "
00064 #define STR_CMD_SET_CHANNEL_STATUS "mac set ch status "
00065 
00066 #define STR_CMD_JOIN "mac join "
00067 #define STR_OTAA "otaa"
00068 #define STR_ABP "abp"
00069 #define STR_ACCEPTED "accepted"
00070 
00071 #define STR_CMD_MAC_TX "mac tx "
00072 #define STR_CONFIRMED "cnf "
00073 #define STR_UNCONFIRMED "uncnf "
00074 
00075 #define STR_CMD_SLEEP "sys sleep " // 3 days
00076 
00077 #define STR_CMD_GET_HWEUI "sys get hweui"
00078 #define STR_CMD_GET_VDD "sys get vdd"
00079 
00080 #endif