Download NXT WifiBlock - User documentation

Transcript
4.4 Do parametrized requests
Like for the Wifi configuration, you can dynamically set the parameters for your requests by
using the data hub. The available parameters are:
Data
Port
Action
Data type
Number
Number
IP1
IP2
IP3
IP4
dstPort
URL
Number
Number
Number
Number
Number
Text
Text
PostData
DebugLogs Boolean
Description
The NXT port where the WifiBlock is connected
1: GET request
(coming soon
2: POST request
3: UDP Tx
4: UDP Rx
5: TCP Tx
6: TCP Rx)
First part of the IP address
Second part of the IP address
Third part of the IP address
Fourth part of the IP address
The port used for connection
The additional data (html page with parameters...) that will be
added after IP address
The data to transmit when you use the POST request
The logs will be stored in a file on the brick, for debug
purpose
Table 5: Description of the “WifiBlockCommunication” data hub fields
Like for any data hub in NXT-G, you can retrieve this data unchanged as output of the hub.
There is only one additional output, the Buffer one, containing the result of the request.
Humarobotics – Making your personal robot smarter
Page 21