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

Committer:
dan_ackme
Date:
Wed Aug 13 03:14:30 2014 -0700
Revision:
13:2b51f5267c92
Parent:
11:ea484e1b7fc4
Child:
16:7f1d6d359787
doc updates

Who changed what in which revision?

UserRevisionLine numberNew contents of line
dan_ackme 0:ea85c4bb5e1f 1 /*
dan_ackme 0:ea85c4bb5e1f 2 * Copyright 2014, ACKme Networks
dan_ackme 0:ea85c4bb5e1f 3 * All Rights Reserved.
dan_ackme 0:ea85c4bb5e1f 4 *
dan_ackme 0:ea85c4bb5e1f 5 * This is UNPUBLISHED PROPRIETARY SOURCE CODE of ACKme Networks;
dan_ackme 0:ea85c4bb5e1f 6 * the contents of this file may not be disclosed to third parties, copied
dan_ackme 0:ea85c4bb5e1f 7 * or duplicated in any form, in whole or in part, without the prior
dan_ackme 0:ea85c4bb5e1f 8 * written permission of ACKme Networks.
dan_ackme 0:ea85c4bb5e1f 9 */
dan_ackme 0:ea85c4bb5e1f 10
dan_ackme 0:ea85c4bb5e1f 11 #pragma once
dan_ackme 0:ea85c4bb5e1f 12
dan_ackme 0:ea85c4bb5e1f 13 #include "WiconnectTypes.h"
dan_ackme 0:ea85c4bb5e1f 14 #include "types/ScanResult.h"
dan_ackme 0:ea85c4bb5e1f 15
dan_ackme 0:ea85c4bb5e1f 16
dan_ackme 0:ea85c4bb5e1f 17
dan_ackme 0:ea85c4bb5e1f 18 namespace wiconnect
dan_ackme 0:ea85c4bb5e1f 19 {
dan_ackme 0:ea85c4bb5e1f 20
dan_ackme 0:ea85c4bb5e1f 21
dan_ackme 11:ea484e1b7fc4 22 /**
dan_ackme 13:2b51f5267c92 23 * @ingroup api_network_types
dan_ackme 11:ea484e1b7fc4 24 *
dan_ackme 11:ea484e1b7fc4 25 * @brief List of WiFi network scan results.
dan_ackme 11:ea484e1b7fc4 26 *
dan_ackme 11:ea484e1b7fc4 27 */
dan_ackme 0:ea85c4bb5e1f 28 class ScanResultList
dan_ackme 0:ea85c4bb5e1f 29 {
dan_ackme 0:ea85c4bb5e1f 30 public:
dan_ackme 0:ea85c4bb5e1f 31 ScanResultList(int bufferLen = 0, void *buffer = NULL);
dan_ackme 0:ea85c4bb5e1f 32 ~ScanResultList();
dan_ackme 0:ea85c4bb5e1f 33
dan_ackme 0:ea85c4bb5e1f 34 const ScanResult* getListHead() const;
dan_ackme 0:ea85c4bb5e1f 35 int getCount() const;
dan_ackme 0:ea85c4bb5e1f 36 const ScanResult* getResult(int i) const;
dan_ackme 0:ea85c4bb5e1f 37 const ScanResult* operator [](int i) const;
dan_ackme 0:ea85c4bb5e1f 38
dan_ackme 0:ea85c4bb5e1f 39 protected:
dan_ackme 0:ea85c4bb5e1f 40 ScanResult *listHead, *listTail;
dan_ackme 0:ea85c4bb5e1f 41 uint8_t *buffer;
dan_ackme 0:ea85c4bb5e1f 42 uint8_t *bufferPtr;
dan_ackme 0:ea85c4bb5e1f 43 int bufferLen;
dan_ackme 0:ea85c4bb5e1f 44 int count;
dan_ackme 0:ea85c4bb5e1f 45
dan_ackme 0:ea85c4bb5e1f 46 WiconnectResult add(const char *channelStr, const char *rssiStr, const char* macStr, const char *rateStr, const char *secStr, const char *ssidStr);
dan_ackme 0:ea85c4bb5e1f 47
dan_ackme 0:ea85c4bb5e1f 48
dan_ackme 0:ea85c4bb5e1f 49 friend class NetworkInterface;
dan_ackme 0:ea85c4bb5e1f 50 };
dan_ackme 0:ea85c4bb5e1f 51
dan_ackme 0:ea85c4bb5e1f 52
dan_ackme 0:ea85c4bb5e1f 53 }