V.06 11/3
Dependencies: FT6206 SDFileSystem SPI_TFT_ILI9341 TFT_fonts
Fork of ATT_AWS_IoT_demo by
Diff: WNCInterface/WncControllerK64F/WncController/WncController.h
- Revision:
- 28:54d9a550adf1
- Parent:
- 15:6f2798e45099
- Child:
- 29:f71a0be59b99
--- a/WNCInterface/WncControllerK64F/WncController/WncController.h Tue Feb 07 16:18:57 2017 +0000 +++ b/WNCInterface/WncControllerK64F/WncController/WncController.h Mon Oct 09 21:13:49 2017 +0000 @@ -51,6 +51,8 @@ */ + + static const uint8_t MAX_LEN_IP_STR = 16; // Length includes room for the extra NULL /** @@ -304,6 +306,9 @@ bool convertICCIDtoMSISDN(const string & iccid, string * msisdn); + //certificate and key object related funtions + bool getObject(string sObjectName, unsigned char *ucObject, int *iObjectLength); + /////////////////////////////////////////// // Neighborhood Cell Info /////////////////////////////////////////// @@ -405,6 +410,12 @@ bool at_ping_wnc(const char * ip); bool at_geticcid_wnc(string * iccid); + //certificate and key objects + bool at_openChannel_wnc(string *sChannelID); + bool at_closeChannel_wnc(string sChannelID); + bool at_selectObject_wnc(string sChannelID, string sObject, int *iObjectLength); + bool at_getObjectBlock_wnc(string sChannelID, string sObject, string sBlock, int *iObjectBlockLength, string *sData); + // Utility methods void sendCmd(const char * cmd, bool crLf); void sendCmd(const char * cmd, unsigned n, unsigned wait_uS, bool crLf); @@ -451,6 +462,11 @@ static bool m_sMoreDebugEnabled; static bool m_sCheckNetStatus; static bool m_sReadyForSMS; + + static string m_sChannelID; + static char sOutput[4000]; + static char sCommand[256]; + static unsigned char ucObject[2500]; }; }; // End namespace WncController_fk