Description Print data to all the clients connected to a server. Prints numbers as a sequence of digits, each an ASCII character (e.g. the number 123 is sent as the three characters ‘1’, ‘2’, ‘3’). Syntax server.print(data) server.print(data, BASE) Parameters data: the data to print (char, byte, int, long, or string) BASE (optional): the base […]
Description Write data to all the clients connected to a server. Syntax server.write(data) Parameters data: the value to write (byte or char) Returns byte : the number of bytes written. It is not necessary to read this. Example Libraries Reference Home The text of the 86Duino reference is a modification of the Arduino reference, and […]
Description Gets a client that is connected to the server and has data available for reading. The connection persists when the returned client object goes out of scope; you can close it by calling client.stop(). available() inherits from the Stream utility class. Syntax server.available() Parameters None Returns a Client object; if no Client has data […]
Description Tells the server to begin listening for incoming connections. Syntax server.begin() Parameters None Returns None Example Libraries Reference Home The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.
Description Creates a server that listens for incoming connections on the specified port. Syntax WiFiServer server(port); Parameters port: the port to listen on (int) Returns None Example Libraries Reference Home The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples […]
Description Server is the base class for all WiFi server based calls. It is not called directly, but invoked whenever you use a function that relies on it. Libraries Reference Home The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code […]
Description Gets the WiFi shield’s gateway IP address. Syntax WiFi.gatewayIP(); Parameters none Returns An array containing the shield’s gateway IP address Example Libraries Reference Home The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released […]
Description Gets the WiFi shield’s subnet mask. Syntax WiFi.subnet(); Parameters none Returns the subnet mask of the shield Example Libraries Reference Home The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public […]
Description Gets the WiFi shield’s IP address. Syntax WiFi.localIP(); Parameters none Returns the IP address of the shield Example Libraries Reference Home The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public […]
Description Initializes the WiFi library’s network settings and provides the current status. Syntax WiFi.begin(); WiFi.begin(ssid); WiFi.begin(ssid, pass); WiFi.begin(ssid, keyIndex, key); Parameters ssid: the SSID (Service Set Identifier) is the name of the WiFi network you want to connect to. keyIndex: WEP encrypted networks can hold up to 4 different keys. This identifies which key you […]