The Cayenne MQTT mbed Library provides functions to easily connect to the Cayenne IoT project builder.
Dependents: Cayenne-ESP8266Interface Cayenne-WIZnet_Library Cayenne-WIZnetInterface Cayenne-X-NUCLEO-IDW01M1 ... more
CayenneTopics.h
00001 /* 00002 The MIT License(MIT) 00003 00004 Cayenne MQTT Client Library 00005 Copyright (c) 2016 myDevices 00006 00007 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 00008 documentation files(the "Software"), to deal in the Software without restriction, including without limitation 00009 the rights to use, copy, modify, merge, publish, distribute, sublicense, and / or sell copies of the Software, 00010 and to permit persons to whom the Software is furnished to do so, subject to the following conditions : 00011 The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 00012 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 00013 WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE AUTHORS OR 00014 COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 00015 ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 00016 00017 */ 00018 00019 #ifndef _CAYENNETOPICS_h 00020 #define _CAYENNETOPICS_h 00021 00022 typedef enum CayenneTopic 00023 { 00024 UNDEFINED_TOPIC, 00025 DATA_TOPIC, 00026 COMMAND_TOPIC, 00027 CONFIG_TOPIC, 00028 RESPONSE_TOPIC, 00029 SYS_MODEL_TOPIC, 00030 SYS_VERSION_TOPIC, 00031 SYS_CPU_MODEL_TOPIC, 00032 SYS_CPU_SPEED_TOPIC, 00033 #ifdef DIGITAL_AND_ANALOG_SUPPORT 00034 DIGITAL_TOPIC, 00035 DIGITAL_COMMAND_TOPIC, 00036 DIGITAL_CONFIG_TOPIC, 00037 ANALOG_TOPIC, 00038 ANALOG_COMMAND_TOPIC, 00039 ANALOG_CONFIG_TOPIC, 00040 #endif 00041 } CayenneTopic; 00042 00043 #define DATA_STRING CAYENNE_PSTR("data") 00044 #define COMMAND_STRING CAYENNE_PSTR("cmd") 00045 #define CONFIG_STRING CAYENNE_PSTR("conf") 00046 #define RESPONSE_STRING CAYENNE_PSTR("response") 00047 #define SYS_MODEL_STRING CAYENNE_PSTR("sys/model") 00048 #define SYS_VERSION_STRING CAYENNE_PSTR("sys/version") 00049 #define SYS_CPU_MODEL_STRING CAYENNE_PSTR("sys/cpu/model") 00050 #define SYS_CPU_SPEED_STRING CAYENNE_PSTR("sys/cpu/speed") 00051 #ifdef DIGITAL_AND_ANALOG_SUPPORT 00052 #define DIGITAL_STRING CAYENNE_PSTR("digital") 00053 #define DIGITAL_COMMAND_STRING CAYENNE_PSTR("digital-cmd") 00054 #define DIGITAL_CONFIG_STRING CAYENNE_PSTR("digital-conf") 00055 #define ANALOG_STRING CAYENNE_PSTR("analog") 00056 #define ANALOG_COMMAND_STRING CAYENNE_PSTR("analog-cmd") 00057 #define ANALOG_CONFIG_STRING CAYENNE_PSTR("analog-conf") 00058 #endif 00059 00060 #define CAYENNE_ALL_CHANNELS 0xFFFF 00061 #define CAYENNE_NO_CHANNEL 0xFFFE 00062 00063 #endif
Generated on Wed Jul 13 2022 15:49:28 by 1.7.2