Table des matières

TNY-360 Documentation

Wi-Fi

Wi-Fi module of the TNY-360 API (code 0x10).

This module contains actions related to the Wi-Fi management of the robot, such as connecting to access points.


List of actions

Here's a list of all the actions available in the wifi module:

0x10 - 0x00

wifi.ConnectToAP

Connects to a Wi-Fi access point with the given SSID and password.


Arguments

  • ssidstring

    -

    The SSID of the access point to connect to.

  • passwordstring

    -

    The password of the access point to connect to.


No return values

0x10 - 0x01

wifi.DisconnectFromAP

Disconnects from the currently connected access point.


No arguments


No return values

0x10 - 0x02

wifi.HasStoredAPCredentials

Returns whether a known access point is stored in the robot's memory.


No arguments


Return Values

  • has_credentialsbool

    -

    Whether a known access point is stored in the robot's memory

0x10 - 0x03

wifi.ForgetStoredAPCredentials

Forgets the stored access point credentials in the robot's memory.


No arguments


No return values

0x10 - 0x04

wifi.StartAP

Starts the robot's access point.


No arguments


No return values

0x10 - 0x05

wifi.StopAP

Stops the robot's access point.


No arguments


No return values

0x10 - 0x06

wifi.GetState

Returns the current state of the WiFiManager, see WiFiManager::State for more details.


No arguments


Return Values

  • stateuint8

    -

    Current state of the WiFiManager.

0x10 - 0x07

wifi.GetMode

Returns the current mode of the WiFiManager, see WiFiManager::Mode for more details.


No arguments


Return Values

  • modeuint8

    -

    Current mode of the WiFiManager, deduced from the current state.

0x10 - 0x08

wifi.GetSSID

Returns the SSID of the currently connected WiFi network.


No arguments


Return Values

  • ssidstring

    -

    The SSID of the currently connected WiFi network.

0x10 - 0x09

wifi.GetIPAddr

Returns the IP address of the robot on the currently connected WiFi network.


No arguments


Return Values

  • ip_addrstring

    -

    The IP address of the robot.

0x10 - 0x0A

wifi.GetMACAddr

Returns the MAC address of the robot.


No arguments


Return Values

  • mac_addrstring

    -

    The MAC address of the robot.

List of types

Here's a list of all the types used in the wifi module:

No custom types found in the actions of the "wifi" module.