Host library for controlling a WiConnect enabled Wi-Fi module.
Dependents: wiconnect-ota_example wiconnect-web_setup_example wiconnect-test-console wiconnect-tcp_server_example ... more
Revision 1:6ec9998427ad, committed 2014-08-11
- Comitter:
- dan_ackme
- Date:
- Mon Aug 11 03:29:30 2014 -0700
- Parent:
- 0:ea85c4bb5e1f
- Child:
- 2:05e20e184e7e
- Commit message:
- fixed compiler warnings
Changed in this revision
--- a/FileInterface.h Mon Aug 11 09:58:24 2014 +0000 +++ b/FileInterface.h Mon Aug 11 03:29:30 2014 -0700 @@ -27,8 +27,6 @@ class FileInterface { public: - FileInterface(Wiconnect *wiconnect); - WiconnectResult createFile(const ReaderFunc &reader, void *user, const char *name, uint32_t size, uint32_t version = 0, FileType type = FILE_TYPE_ANY, bool isEssential = false, int32_t checksum = -1); WiconnectResult openFile(File &file, const char *name); WiconnectResult deleteFile(const char *name); @@ -41,10 +39,11 @@ static const char* fileFlagsToStr(FileFlags flags, char *buffer = NULL); protected: + FileInterface(Wiconnect *wiconnect); + WiconnectResult processFileList(char *responseStr, FileList &list, const char *name, FileType type, uint32_t version); private: Wiconnect *wiconnect; }; } -
--- a/NetworkInterface.h Mon Aug 11 09:58:24 2014 +0000 +++ b/NetworkInterface.h Mon Aug 11 03:29:30 2014 -0700 @@ -79,4 +79,3 @@ }; } -
--- a/SocketInterface.h Mon Aug 11 09:58:24 2014 +0000 +++ b/SocketInterface.h Mon Aug 11 03:29:30 2014 -0700 @@ -25,9 +25,6 @@ class SocketInterface { public: - SocketInterface(Wiconnect *wiconnect); - ~SocketInterface(); - WiconnectResult closeAllSockets(); WiconnectResult registerSocketIrqHandler(Pin irqPin, const Callback &handler); WiconnectResult unregisterSocketIrqHandler(Pin irqPin); @@ -44,6 +41,8 @@ WiconnectResult httpGetStatus(Socket &socket, uint32_t *statusCodePtr); protected: + SocketInterface(Wiconnect *wiconnect); + SocketIrqHandlerMap irqHandlers; private: @@ -51,4 +50,3 @@ }; } -
--- a/StringUtil.h Mon Aug 11 09:58:24 2014 +0000 +++ b/StringUtil.h Mon Aug 11 03:29:30 2014 -0700 @@ -384,4 +384,3 @@ return (c1 > c2 ? 1 : c1 < c2 ? -1 : 0); } }; -
--- a/Wiconnect.h Mon Aug 11 09:58:24 2014 +0000 +++ b/Wiconnect.h Mon Aug 11 03:29:30 2014 -0700 @@ -16,4 +16,3 @@ using namespace wiconnect; -
--- a/WiconnectInterface.h Mon Aug 11 09:58:24 2014 +0000 +++ b/WiconnectInterface.h Mon Aug 11 03:29:30 2014 -0700 @@ -156,4 +156,3 @@ }; } -
--- a/WiconnectTypes.h Mon Aug 11 09:58:24 2014 +0000 +++ b/WiconnectTypes.h Mon Aug 11 03:29:30 2014 -0700 @@ -219,4 +219,3 @@ class SocketIrqHandlerMap; } -
--- a/internal/WiconnectCommands.h Mon Aug 11 09:58:24 2014 +0000 +++ b/internal/WiconnectCommands.h Mon Aug 11 03:29:30 2014 -0700 @@ -26,4 +26,3 @@ #define CMD_GET_NETWORK_STATUS "get network.status" -
--- a/internal/common.h Mon Aug 11 09:58:24 2014 +0000 +++ b/internal/common.h Mon Aug 11 03:29:30 2014 -0700 @@ -57,17 +57,14 @@ #ifdef WICONNECT_USE_DEFAULT_STRING_BUFFERS #define SET_STR_BUFFER(_buffer, size) \ char *ptr, *buf; \ - (void)buf; \ static char defaultBuffer[size]; \ ptr = buf = (_buffer == NULL) ? defaultBuffer : _buffer; #else #define SET_STR_BUFFER(_buffer, size) \ char *ptr, *buf; \ - (void)buf; \ if(_buffer == NULL) \ { \ return "<null>"; \ } \ ptr = buf = _buffer; #endif -
--- a/internal/file/FileInterface.cpp Mon Aug 11 09:58:24 2014 +0000 +++ b/internal/file/FileInterface.cpp Mon Aug 11 03:29:30 2014 -0700 @@ -204,4 +204,3 @@ return buf; } -
--- a/internal/file/FileList.cpp Mon Aug 11 09:58:24 2014 +0000 +++ b/internal/file/FileList.cpp Mon Aug 11 03:29:30 2014 -0700 @@ -109,4 +109,3 @@ return strcmp(needle, haystack) == 0; } } -
--- a/internal/network/NetworkInterface.cpp Mon Aug 11 09:58:24 2014 +0000 +++ b/internal/network/NetworkInterface.cpp Mon Aug 11 03:29:30 2014 -0700 @@ -456,7 +456,7 @@ { if(count < 5) { - const char *idx = strchr(strPtr, ':'); + char *idx = strchr(strPtr, ':'); if(idx == NULL) { return false; @@ -490,4 +490,3 @@ return ptr; } -
--- a/internal/network/NetworkJoin.cpp Mon Aug 11 09:58:24 2014 +0000 +++ b/internal/network/NetworkJoin.cpp Mon Aug 11 03:29:30 2014 -0700 @@ -162,4 +162,3 @@ } #endif -
--- a/internal/network/NetworkScan.cpp Mon Aug 11 09:58:24 2014 +0000 +++ b/internal/network/NetworkScan.cpp Mon Aug 11 03:29:30 2014 -0700 @@ -140,4 +140,3 @@ //} // //#endif -
--- a/internal/network/NetworkSoftAp.cpp Mon Aug 11 09:58:24 2014 +0000 +++ b/internal/network/NetworkSoftAp.cpp Mon Aug 11 03:29:30 2014 -0700 @@ -29,4 +29,3 @@ //{ // return WICONNECT_UNSUPPORTED; //} -
--- a/internal/network/NetworkWebSetup.cpp Mon Aug 11 09:58:24 2014 +0000 +++ b/internal/network/NetworkWebSetup.cpp Mon Aug 11 03:29:30 2014 -0700 @@ -160,4 +160,3 @@ } #endif -
--- a/internal/socket/SocketInterface.cpp Mon Aug 11 09:58:24 2014 +0000 +++ b/internal/socket/SocketInterface.cpp Mon Aug 11 03:29:30 2014 -0700 @@ -25,11 +25,6 @@ } /*************************************************************************************************/ -SocketInterface::~SocketInterface() -{ -} - -/*************************************************************************************************/ WiconnectResult SocketInterface::connect(Socket &socket, SocketType type, const char *host, uint16_t remortPort, uint16_t localPort, const void *args, Pin irqPin) { WiconnectResult result; @@ -264,4 +259,3 @@ { return irqHandlers.unregisterHandler(irqPin); } -
--- a/internal/types/File.cpp Mon Aug 11 09:58:24 2014 +0000 +++ b/internal/types/File.cpp Mon Aug 11 03:29:30 2014 -0700 @@ -281,4 +281,3 @@ rxBuffer.bytesPending = 0; rxBuffer.ptr = rxBuffer.buffer; } -
--- a/internal/types/FileList.cpp Mon Aug 11 09:58:24 2014 +0000 +++ b/internal/types/FileList.cpp Mon Aug 11 03:29:30 2014 -0700 @@ -122,4 +122,3 @@ return getResult(i); } -
--- a/internal/types/QueuedCommand.cpp Mon Aug 11 09:58:24 2014 +0000 +++ b/internal/types/QueuedCommand.cpp Mon Aug 11 03:29:30 2014 -0700 @@ -168,4 +168,3 @@ command[len] = 0; } } -
--- a/internal/types/ScanResult.cpp Mon Aug 11 09:58:24 2014 +0000 +++ b/internal/types/ScanResult.cpp Mon Aug 11 03:29:30 2014 -0700 @@ -164,4 +164,3 @@ return true; } -
--- a/internal/types/ScanResultList.cpp Mon Aug 11 09:58:24 2014 +0000 +++ b/internal/types/ScanResultList.cpp Mon Aug 11 03:29:30 2014 -0700 @@ -126,4 +126,3 @@ -
--- a/internal/types/Socket.cpp Mon Aug 11 09:58:24 2014 +0000 +++ b/internal/types/Socket.cpp Mon Aug 11 03:29:30 2014 -0700 @@ -487,4 +487,3 @@ return WICONNECT_SUCCESS; } -
--- a/internal/wiconnect/AsyncCommand.cpp Mon Aug 11 09:58:24 2014 +0000 +++ b/internal/wiconnect/AsyncCommand.cpp Mon Aug 11 03:29:30 2014 -0700 @@ -97,4 +97,3 @@ #endif -
--- a/internal/wiconnect/CommandCommon.h Mon Aug 11 09:58:24 2014 +0000 +++ b/internal/wiconnect/CommandCommon.h Mon Aug 11 03:29:30 2014 -0700 @@ -79,4 +79,3 @@ Callback callback; bool nonBlocking; } CommandContext; -
--- a/internal/wiconnect/ProcessCommand.cpp Mon Aug 11 09:58:24 2014 +0000 +++ b/internal/wiconnect/ProcessCommand.cpp Mon Aug 11 03:29:30 2014 -0700 @@ -316,4 +316,3 @@ issueCommandCallback(WICONNECT_ABORTED); } -
--- a/internal/wiconnect/SendCommand.cpp Mon Aug 11 09:58:24 2014 +0000 +++ b/internal/wiconnect/SendCommand.cpp Mon Aug 11 03:29:30 2014 -0700 @@ -190,4 +190,3 @@ return sendCommand(Callback(), internalBuffer, internalBufferSize, defaultTimeoutMs, ReaderFunc(), NULL, cmd, vaList); } -
--- a/internal/wiconnect/Wiconnect.cpp Mon Aug 11 09:58:24 2014 +0000 +++ b/internal/wiconnect/Wiconnect.cpp Mon Aug 11 03:29:30 2014 -0700 @@ -294,4 +294,3 @@ } debugLogger.call(buffer); } -
--- a/internal/wiconnect/WiconnectCommand.cpp Mon Aug 11 09:58:24 2014 +0000 +++ b/internal/wiconnect/WiconnectCommand.cpp Mon Aug 11 03:29:30 2014 -0700 @@ -79,4 +79,3 @@ } -
--- a/sdk/mbed/Gpio.cpp Mon Aug 11 09:58:24 2014 +0000 +++ b/sdk/mbed/Gpio.cpp Mon Aug 11 03:29:30 2014 -0700 @@ -47,4 +47,3 @@ { memcpy((void*)&gpio, (void*)&other.gpio, sizeof(gpio)); } -
--- a/sdk/mbed/PeriodicTimer.cpp Mon Aug 11 09:58:24 2014 +0000 +++ b/sdk/mbed/PeriodicTimer.cpp Mon Aug 11 03:29:30 2014 -0700 @@ -43,4 +43,3 @@ { return running; } -
--- a/sdk/mbed/PinIrqHandler.cpp Mon Aug 11 09:58:24 2014 +0000 +++ b/sdk/mbed/PinIrqHandler.cpp Mon Aug 11 03:29:30 2014 -0700 @@ -37,4 +37,3 @@ { callback.call(WICONNECT_SUCCESS, (void*)irqPin, NULL); } -
--- a/sdk/mbed/TimeoutTimer.cpp Mon Aug 11 09:58:24 2014 +0000 +++ b/sdk/mbed/TimeoutTimer.cpp Mon Aug 11 03:29:30 2014 -0700 @@ -44,4 +44,3 @@ timeoutMs *= 1000; return (timeoutMs <= readUs()); } -
--- a/sdk/mbed/WiconnectSerial.cpp Mon Aug 11 09:58:24 2014 +0000 +++ b/sdk/mbed/WiconnectSerial.cpp Mon Aug 11 03:29:30 2014 -0700 @@ -177,4 +177,3 @@ rxBuffer->head = rxBuffer->start; } } -
--- a/sdk/mbed/sdk.h Mon Aug 11 09:58:24 2014 +0000 +++ b/sdk/mbed/sdk.h Mon Aug 11 03:29:30 2014 -0700 @@ -93,4 +93,3 @@ } -
--- a/types/Callback.h Mon Aug 11 09:58:24 2014 +0000 +++ b/types/Callback.h Mon Aug 11 03:29:30 2014 -0700 @@ -73,4 +73,3 @@ } -
--- a/types/CommandQueue.h Mon Aug 11 09:58:24 2014 +0000 +++ b/types/CommandQueue.h Mon Aug 11 03:29:30 2014 -0700 @@ -83,4 +83,3 @@ } -
--- a/types/File.h Mon Aug 11 09:58:24 2014 +0000 +++ b/types/File.h Mon Aug 11 03:29:30 2014 -0700 @@ -64,4 +64,3 @@ }; } -
--- a/types/FileList.h Mon Aug 11 09:58:24 2014 +0000 +++ b/types/FileList.h Mon Aug 11 03:29:30 2014 -0700 @@ -42,4 +42,3 @@ } -
--- a/types/FunctionPointer.h Mon Aug 11 09:58:24 2014 +0000 +++ b/types/FunctionPointer.h Mon Aug 11 03:29:30 2014 -0700 @@ -48,4 +48,3 @@ }; } -
--- a/types/Gpio.h Mon Aug 11 09:58:24 2014 +0000 +++ b/types/Gpio.h Mon Aug 11 03:29:30 2014 -0700 @@ -34,4 +34,3 @@ } -
--- a/types/LogFunc.h Mon Aug 11 09:58:24 2014 +0000 +++ b/types/LogFunc.h Mon Aug 11 03:29:30 2014 -0700 @@ -74,4 +74,3 @@ } -
--- a/types/PeriodicTimer.h Mon Aug 11 09:58:24 2014 +0000 +++ b/types/PeriodicTimer.h Mon Aug 11 03:29:30 2014 -0700 @@ -31,4 +31,3 @@ } -
--- a/types/PinIrqHandler.h Mon Aug 11 09:58:24 2014 +0000 +++ b/types/PinIrqHandler.h Mon Aug 11 03:29:30 2014 -0700 @@ -23,7 +23,7 @@ { public: PinIrqHandler(Pin irqPin, const Callback &callback); - //~PinIrqHandler(); + ~PinIrqHandler(); void irqHandler(); @@ -38,4 +38,3 @@ typedef uint8_t PinIrqHandlerBuffer[sizeof(PinIrqHandler)]; } -
--- a/types/QueuedCommand.h Mon Aug 11 09:58:24 2014 +0000 +++ b/types/QueuedCommand.h Mon Aug 11 03:29:30 2014 -0700 @@ -63,4 +63,3 @@ } -
--- a/types/ReaderFunc.h Mon Aug 11 09:58:24 2014 +0000 +++ b/types/ReaderFunc.h Mon Aug 11 03:29:30 2014 -0700 @@ -73,4 +73,3 @@ }; } -
--- a/types/ScanResult.h Mon Aug 11 09:58:24 2014 +0000 +++ b/types/ScanResult.h Mon Aug 11 03:29:30 2014 -0700 @@ -59,4 +59,3 @@ } -
--- a/types/ScanResultList.h Mon Aug 11 09:58:24 2014 +0000 +++ b/types/ScanResultList.h Mon Aug 11 03:29:30 2014 -0700 @@ -46,4 +46,3 @@ } -
--- a/types/Socket.h Mon Aug 11 09:58:24 2014 +0000 +++ b/types/Socket.h Mon Aug 11 03:29:30 2014 -0700 @@ -70,4 +70,3 @@ } -
--- a/types/SocketIrqHandlerMap.h Mon Aug 11 09:58:24 2014 +0000 +++ b/types/SocketIrqHandlerMap.h Mon Aug 11 03:29:30 2014 -0700 @@ -103,4 +103,3 @@ } -
--- a/types/TimeoutTimer.h Mon Aug 11 09:58:24 2014 +0000 +++ b/types/TimeoutTimer.h Mon Aug 11 03:29:30 2014 -0700 @@ -33,4 +33,3 @@ } -
--- a/types/WiconnectSerial.h Mon Aug 11 09:58:24 2014 +0000 +++ b/types/WiconnectSerial.h Mon Aug 11 03:29:30 2014 -0700 @@ -20,7 +20,7 @@ { public: WiconnectSerial(const SerialConfig &config, Wiconnect *wiconnect = NULL); - //~WiconnectSerial(); + ~WiconnectSerial(); void flush(void); int write(const void *data, int bytesToWrite, int timeoutMs); @@ -39,4 +39,3 @@ } -