modified by ohneta
Dependents: HelloESP8266Interface_mine
Fork of ESP8266Interface by
WiFiRadioInterface.cpp@11:288c15b80a26, 2015-06-17 (annotated)
- Committer:
- sam_grove
- Date:
- Wed Jun 17 21:01:51 2015 +0000
- Revision:
- 11:288c15b80a26
- Child:
- 12:8db9b116cf76
renaming again
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sam_grove | 11:288c15b80a26 | 1 | /* ESP8266Interface |
sam_grove | 11:288c15b80a26 | 2 | * Copyright (c) 2015 ARM Limited |
sam_grove | 11:288c15b80a26 | 3 | * |
sam_grove | 11:288c15b80a26 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
sam_grove | 11:288c15b80a26 | 5 | * you may not use this file except in compliance with the License. |
sam_grove | 11:288c15b80a26 | 6 | * You may obtain a copy of the License at |
sam_grove | 11:288c15b80a26 | 7 | * |
sam_grove | 11:288c15b80a26 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
sam_grove | 11:288c15b80a26 | 9 | * |
sam_grove | 11:288c15b80a26 | 10 | * Unless required by applicable law or agreed to in writing, software |
sam_grove | 11:288c15b80a26 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
sam_grove | 11:288c15b80a26 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
sam_grove | 11:288c15b80a26 | 13 | * See the License for the specific language governing permissions and |
sam_grove | 11:288c15b80a26 | 14 | * limitations under the License. |
sam_grove | 11:288c15b80a26 | 15 | */ |
sam_grove | 11:288c15b80a26 | 16 | |
sam_grove | 11:288c15b80a26 | 17 | #include "WiFiRadioInterface.h" |
sam_grove | 11:288c15b80a26 | 18 | |
sam_grove | 11:288c15b80a26 | 19 | WiFiRadioInterface::WiFiRadioInterface() |
sam_grove | 11:288c15b80a26 | 20 | { |
sam_grove | 11:288c15b80a26 | 21 | |
sam_grove | 11:288c15b80a26 | 22 | } |
sam_grove | 11:288c15b80a26 | 23 | |
sam_grove | 11:288c15b80a26 | 24 | WiFiRadioInterface::WiFiRadioInterface(const char *ap, const char *pass_phrase, wifi_security_t security, uint32_t timeout_ms) |
sam_grove | 11:288c15b80a26 | 25 | { |
sam_grove | 11:288c15b80a26 | 26 | |
sam_grove | 11:288c15b80a26 | 27 | } |
sam_grove | 11:288c15b80a26 | 28 | |
sam_grove | 11:288c15b80a26 | 29 | int32_t WiFiRadioInterface::init(void) const |
sam_grove | 11:288c15b80a26 | 30 | { |
sam_grove | 11:288c15b80a26 | 31 | return -1; |
sam_grove | 11:288c15b80a26 | 32 | } |
sam_grove | 11:288c15b80a26 | 33 | |
sam_grove | 11:288c15b80a26 | 34 | int32_t WiFiRadioInterface::init(const char *ip, const char *mask, const char *gateway) const |
sam_grove | 11:288c15b80a26 | 35 | { |
sam_grove | 11:288c15b80a26 | 36 | return -1; |
sam_grove | 11:288c15b80a26 | 37 | } |
sam_grove | 11:288c15b80a26 | 38 | |
sam_grove | 11:288c15b80a26 | 39 | int32_t WiFiRadioInterface::connect(uint32_t timeout_ms) const |
sam_grove | 11:288c15b80a26 | 40 | { |
sam_grove | 11:288c15b80a26 | 41 | return -1; |
sam_grove | 11:288c15b80a26 | 42 | } |
sam_grove | 11:288c15b80a26 | 43 | |
sam_grove | 11:288c15b80a26 | 44 | int32_t WiFiRadioInterface::connect(const char *ap, const char *pass_phrase, wifi_security_t security, uint32_t timeout_ms) const |
sam_grove | 11:288c15b80a26 | 45 | { |
sam_grove | 11:288c15b80a26 | 46 | return -1; |
sam_grove | 11:288c15b80a26 | 47 | } |
sam_grove | 11:288c15b80a26 | 48 | |
sam_grove | 11:288c15b80a26 | 49 | int32_t WiFiRadioInterface::disconnect(void) const |
sam_grove | 11:288c15b80a26 | 50 | { |
sam_grove | 11:288c15b80a26 | 51 | return -1; |
sam_grove | 11:288c15b80a26 | 52 | } |
sam_grove | 11:288c15b80a26 | 53 | |
sam_grove | 11:288c15b80a26 | 54 | char *WiFiRadioInterface::getIPAddress(void) const |
sam_grove | 11:288c15b80a26 | 55 | { |
sam_grove | 11:288c15b80a26 | 56 | return 0; |
sam_grove | 11:288c15b80a26 | 57 | } |
sam_grove | 11:288c15b80a26 | 58 | |
sam_grove | 11:288c15b80a26 | 59 | char *WiFiRadioInterface::getGateway(void) const |
sam_grove | 11:288c15b80a26 | 60 | { |
sam_grove | 11:288c15b80a26 | 61 | return 0; |
sam_grove | 11:288c15b80a26 | 62 | } |
sam_grove | 11:288c15b80a26 | 63 | |
sam_grove | 11:288c15b80a26 | 64 | char *WiFiRadioInterface::getNetworkMask(void) const |
sam_grove | 11:288c15b80a26 | 65 | { |
sam_grove | 11:288c15b80a26 | 66 | return 0; |
sam_grove | 11:288c15b80a26 | 67 | } |
sam_grove | 11:288c15b80a26 | 68 | |
sam_grove | 11:288c15b80a26 | 69 | char *WiFiRadioInterface::getMACAddress(void) const |
sam_grove | 11:288c15b80a26 | 70 | { |
sam_grove | 11:288c15b80a26 | 71 | return 0; |
sam_grove | 11:288c15b80a26 | 72 | } |
sam_grove | 11:288c15b80a26 | 73 | |
sam_grove | 11:288c15b80a26 | 74 | int32_t WiFiRadioInterface::isConnected(void) const |
sam_grove | 11:288c15b80a26 | 75 | { |
sam_grove | 11:288c15b80a26 | 76 | return -1; |
sam_grove | 11:288c15b80a26 | 77 | } |