RP6 ROBOT SYSTEM - 4. RP6 CONTROL M256 WIFI Library
Tip:
These few simple to use functions are already sufficient for working
with the WLAN module.
Basically all special functions are driven by text commands and corres-
ponding reactions of the WLAN module. The indicated functions allow to
do that and therefore nothing else has been added to the central library
up to now. The RP6M256Lib is focused on the basic communication, all
the rest belongs to specific applications. Some functions are shown in
the example programs but of course by far not all possible functions.
Small example: To change the IP address, netmask and gateway, just
proceed as follows:
enter_cmd_mode_WIFI();
issueCMD_WIFI("set ip address 192.168.10.180","AOK");
issueCMD_WIFI("set ip netmask 255.255.255.0","AOK");
issueCMD_WIFI("set ip gateway 192.168.10.1","AOK");
leave_cmd_mode_WIFI();
You always have to wait for “AOK” which is the normal confirmation
message of the WLAN module. Most of the other commands work the
same way.
The basic configuration is already done by the RobotLoader and doesn't
need to be done in your own programs. This saves time and space.
Moreover you can change the settings without the need to recompile
the program.
- 41 -