Adding WiFi.softAP support and bumping version.
This commit is contained in:
2
Makefile
2
Makefile
@ -12,7 +12,7 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
VERSION=7.0.6.16
|
VERSION=7.0.6.17
|
||||||
STABLE_VERSION=7.0.5.4
|
STABLE_VERSION=7.0.5.4
|
||||||
REVISION=$(shell git rev-parse HEAD | head -c 20)
|
REVISION=$(shell git rev-parse HEAD | head -c 20)
|
||||||
REVSHORT=$(shell echo $(REVISION) | head -c 7)
|
REVSHORT=$(shell echo $(REVISION) | head -c 7)
|
||||||
|
|||||||
@ -512,7 +512,14 @@ static cell_t FromIP(IPAddress ip) {
|
|||||||
XV(WiFi, "WiFi.localIP", WIFI_LOCAL_IPS, PUSH FromIP(WiFi.localIP())) \
|
XV(WiFi, "WiFi.localIP", WIFI_LOCAL_IPS, PUSH FromIP(WiFi.localIP())) \
|
||||||
XV(WiFi, "WiFi.mode", WIFI_MODE, WiFi.mode((wifi_mode_t) n0); DROP) \
|
XV(WiFi, "WiFi.mode", WIFI_MODE, WiFi.mode((wifi_mode_t) n0); DROP) \
|
||||||
XV(WiFi, "WiFi.setTxPower", WIFI_SET_TX_POWER, WiFi.setTxPower((wifi_power_t) n0); DROP) \
|
XV(WiFi, "WiFi.setTxPower", WIFI_SET_TX_POWER, WiFi.setTxPower((wifi_power_t) n0); DROP) \
|
||||||
XV(WiFi, "WiFi.getTxPower", WIFI_GET_TX_POWER, PUSH WiFi.getTxPower())
|
XV(WiFi, "WiFi.getTxPower", WIFI_GET_TX_POWER, PUSH WiFi.getTxPower()) \
|
||||||
|
XV(WiFi, "WiFi.softAP", WIFI_SOFTAP, n0 = WiFi.softAP(c1, c0); NIP) \
|
||||||
|
XV(WiFi, "WiFi.softAPIP", WIFI_SOFTAP_IP, PUSH FromIP(WiFi.softAPIP())) \
|
||||||
|
XV(WiFi, "WiFi.softAPBroadcastIP", WIFI_SOFTAP_BROADCASTIP, PUSH FromIP(WiFi.softAPBroadcastIP())) \
|
||||||
|
XV(WiFi, "WiFi.softAPNetworkID", WIFI_SOFTAP_NETWORKID, PUSH FromIP(WiFi.softAPNetworkID())) \
|
||||||
|
XV(WiFi, "WiFi.softAPConfig", WIFI_SOFTAP_CONFIG, n0 = WiFi.softAPConfig(ToIP(n2), ToIP(n1), ToIP(n0))) \
|
||||||
|
XV(WiFi, "WiFi.softAPdisconnect", WIFI_SOFTAP_DISCONNECT, n0 = WiFi.softAPdisconnect(n0)) \
|
||||||
|
XV(WiFi, "WiFi.softAPgetStationNum", WIFI_SOFTAP_GET_STATION_NUM, PUSH WiFi.softAPgetStationNum())
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef ENABLE_MDNS_SUPPORT
|
#ifndef ENABLE_MDNS_SUPPORT
|
||||||
|
|||||||
@ -448,6 +448,15 @@ WiFi.localIP ( -- ip )
|
|||||||
WiFi.mode ( mode -- ) WIFI_MODE_NULL WIFI_MODE_STA WIFI_MODE_AP WIFI_MODE_APSTA
|
WiFi.mode ( mode -- ) WIFI_MODE_NULL WIFI_MODE_STA WIFI_MODE_AP WIFI_MODE_APSTA
|
||||||
WiFi.setTxPower ( powerx4 -- ) Set power x4
|
WiFi.setTxPower ( powerx4 -- ) Set power x4
|
||||||
WiFi.getTxPower ( -- powerx4 ) Get power x4
|
WiFi.getTxPower ( -- powerx4 ) Get power x4
|
||||||
|
|
||||||
|
( In 7.0.6.17 and up )
|
||||||
|
WiFi.softAP ( ssid password/0 -- success )
|
||||||
|
WiFi.softAPIP ( -- ip )
|
||||||
|
WiFi.softAPBroadcastIP ( -- ip )
|
||||||
|
WiFi.softAPNetworkID ( -- ip )
|
||||||
|
WiFi.softAPConfig ( localip gateway subnet -- success )
|
||||||
|
WiFi.softAPdisconnect ( wifioff -- success )
|
||||||
|
WiFi.softAPgetStationNum ( -- num )
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<h5>mDNS</h5>
|
<h5>mDNS</h5>
|
||||||
|
|||||||
Reference in New Issue
Block a user