mqtt specific components for the impact mbed endpoint library
Dependents: mbed_mqtt_endpoint_ublox_ethernet mbed_mqtt_endpoint_ublox_cellular mbed_mqtt_endpoint_nxp
IOCEndpoint.h@11:9ae0fe4517c1, 2014-03-28 (annotated)
- Committer:
- ansond
- Date:
- Fri Mar 28 17:49:19 2014 +0000
- Revision:
- 11:9ae0fe4517c1
- Parent:
- 7:8a4a61202b36
- Child:
- 56:789a1a8c5ebe
updates
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ansond | 6:2db2c7e75ad9 | 1 | /* Copyright C2013 Doug Anson, MIT License |
ansond | 6:2db2c7e75ad9 | 2 | * |
ansond | 6:2db2c7e75ad9 | 3 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this software |
ansond | 6:2db2c7e75ad9 | 4 | * and associated documentation files the "Software", to deal in the Software without restriction, |
ansond | 6:2db2c7e75ad9 | 5 | * including without limitation the rights to use, copy, modify, merge, publish, distribute, |
ansond | 6:2db2c7e75ad9 | 6 | * sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is |
ansond | 6:2db2c7e75ad9 | 7 | * furnished to do so, subject to the following conditions: |
ansond | 6:2db2c7e75ad9 | 8 | * |
ansond | 6:2db2c7e75ad9 | 9 | * The above copyright notice and this permission notice shall be included in all copies or |
ansond | 6:2db2c7e75ad9 | 10 | * substantial portions of the Software. |
ansond | 6:2db2c7e75ad9 | 11 | * |
ansond | 6:2db2c7e75ad9 | 12 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING |
ansond | 6:2db2c7e75ad9 | 13 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
ansond | 6:2db2c7e75ad9 | 14 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, |
ansond | 6:2db2c7e75ad9 | 15 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
ansond | 6:2db2c7e75ad9 | 16 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
ansond | 6:2db2c7e75ad9 | 17 | */ |
ansond | 6:2db2c7e75ad9 | 18 | |
ansond | 6:2db2c7e75ad9 | 19 | #ifndef _IOC_ENDPOINT_H_ |
ansond | 6:2db2c7e75ad9 | 20 | #define _IOC_ENDPOINT_H_ |
ansond | 6:2db2c7e75ad9 | 21 | |
ansond | 11:9ae0fe4517c1 | 22 | // BaseClass support |
ansond | 11:9ae0fe4517c1 | 23 | #include "BaseClass.h" |
ansond | 6:2db2c7e75ad9 | 24 | |
ansond | 7:8a4a61202b36 | 25 | // Personality support - Lights |
ansond | 6:2db2c7e75ad9 | 26 | #include "Light.h" |
ansond | 6:2db2c7e75ad9 | 27 | |
ansond | 11:9ae0fe4517c1 | 28 | class IOCEndpoint : public BaseClass { |
ansond | 6:2db2c7e75ad9 | 29 | public: |
ansond | 6:2db2c7e75ad9 | 30 | IOCEndpoint(ErrorHandler *error_handler,void *endpoint); |
ansond | 11:9ae0fe4517c1 | 31 | virtual ~IOCEndpoint(); |
ansond | 6:2db2c7e75ad9 | 32 | |
ansond | 7:8a4a61202b36 | 33 | char *buildLightPayload(char *data,int data_length,Light *light); |
ansond | 7:8a4a61202b36 | 34 | void saveExternalID(Personality *instance,char *data); |
ansond | 6:2db2c7e75ad9 | 35 | }; |
ansond | 6:2db2c7e75ad9 | 36 | |
ansond | 6:2db2c7e75ad9 | 37 | #endif // _IOC_ENDPOINT_H_ |