LWIPBP3595Interface library for mbed-os.
Dependents: LWIPBP3595Interface_STA_for_mbed-os
Fork of LWIPBP3595Interface by
Diff: LWIPBP3595Interface.h
- Revision:
- 4:b49b4b36aaa4
- Parent:
- 3:2ff2514e4fca
- Child:
- 5:d03489ec5033
diff -r 2ff2514e4fca -r b49b4b36aaa4 LWIPBP3595Interface.h --- a/LWIPBP3595Interface.h Thu Oct 27 09:30:15 2016 +0000 +++ b/LWIPBP3595Interface.h Fri Oct 28 06:27:14 2016 +0000 @@ -35,8 +35,6 @@ */ LWIPBP3595Interface(); - virtual ~LWIPBP3595Interface(); - /** Set a static IP address * * Configures this network interface to use a static IP address. @@ -67,7 +65,7 @@ * (defaults to NSAPI_SECURITY_NONE) * @return 0 on success, or error code on failure */ - virtual int set_credentials(const char *ssid, const char *pass, nsapi_security_t security = NSAPI_SECURITY_WPA2); + virtual int set_credentials(const char *ssid, const char *pass, nsapi_security_t security = NSAPI_SECURITY_WPA_WPA2); /** Set the WiFi network channel * @@ -113,14 +111,10 @@ /** Scan for available networks * - * The scan will - * If the network interface is set to non-blocking mode, scan will attempt to scan - * for WiFi networks asynchronously and return NSAPI_ERROR_WOULD_BLOCK. If a callback - * is attached, the callback will be called when the operation has completed. + * This function will block. * * @param ap Pointer to allocated array to store discovered AP * @param count Size of allocated @a res array, or 0 to only count available AP - * @param timeout Timeout in milliseconds; 0 for no timeout (Default: 0) * @return Number of entries in @a, or if @a count was 0 number of available networks, negative on error * see @a nsapi_error */ @@ -171,8 +165,8 @@ char _gateway[NSAPI_IPv4_SIZE]; private: - char *_ssid; - char *_pass; + char _ssid[33]; + char _pass[64]; nsapi_security_t _security; };