メインコンテンツ

Wi-Fi

Wi-Fi を使用した通信

Wi-Fi® を使用すると、デバイスからローカル エリア ネットワークにワイヤレスで接続できます。Wi-Fi は、IEEE® 802.11 規格に基づき、インターネット アクセスやデバイス間の通信を物理ケーブルなしで確立するために広く使用されています。

Wi-Fi シールドを Arduino® ボードへのアドオンとして使用することで、その Wi-Fi 機能を拡張します。これらのシールドにより、ボードがワイヤレス ネットワークに接続できるようになり、インターネットまたはローカル ネットワーク経由でデータを送受信できます。

ブロック

WiFi TCP/IP ReceiveReceive data over TCP/IP network from remote host on wireless network
WiFi TCP/IP SendSend data over TCP/IP network to remote host over wireless network
WiFi UDP ReceiveReceive data from UDP host on wireless network
WiFi UDP SendSend data to UDP host on wireless network
WiFi ThingSpeak ReadRead data stored in a ThingSpeak channel on wireless network
WiFi ThingSpeak WritePublish data to Internet of Things using ThingSpeak on wireless network
WebSocket SubscribeSubscribe to the JSON data received by a WebSocket server
WebSocket PublishPublish data to WebSocket server in JSON format
WiFi MQTT PublishPublish messages to message queuing telemetry transport (MQTT) broker (R2022b 以降)
WiFi MQTT SubscribeReceive messages from message queuing telemetry transport (MQTT) broker (R2022b 以降)
WiFi HTTP ClientSend and receive data from HTTP server over URL connection (R2023a 以降)

モデル設定

すべて展開する

WiFi hardwareHardware used for Wi-Fi connectivity
Use static IP address and disable DHCPOption to disable the DHCP
IP addressIP address of Arduino WiFi hardware
Service set identifier (SSID)SSID of network
WiFi encryptionWiFi encryption of network
WPA passwordWPA password of network
Hardware Serial PortPort on the Arduino board that is connected to ESP8266
UsernameUsername of the WPA2 Enterprise credential (R2022a 以降)
PasswordPassword of WPA2 Enterprise credential (R2022a 以降)
IP address assignmentMethod to assign IP address (R2024a 以降)
DNS server addressIP address for domain name system (DNS) server (R2024a 以降)
Gateway addressIP address of default gateway (R2024a 以降)
Subnet maskSubnet mask of network (R2024a 以降)
Broker serviceMQTT broker service provider that receives, filters, and sends messages to clients (R2022b 以降)
Broker addressWeb address associated with MQTT broker (R2022b 以降)
PortPort number associated with MQTT broker (R2022b 以降)
UsernameUser name of the MQTT client (R2022b 以降)
PasswordPassword of the MQTT client (R2022b 以降)
Client IDIdentification number of MQTT client (R2022b 以降)
Connect to custom ThingSpeak serverOption to connect to custom ThingSpeak server
Server IP addressIP address of custom ThingSpeak server
PortPort number through which the ThingSpeak block connects to ThingSpeak server

トピック

トラブルシューティング

Unable to Deploy Code on an Arduino Board Connected to an ESP8266

No separate serial port is available on Arduino Uno board to deploy code.

Unable to Connect ESP8266 to Wi-Fi Network

Connection between ESP8266 and Wi-Fi network failed.

Unable to Assign IP Address to an Arduino Board Connected to ESP8266

Failed to assign IP address to Arduino board connected to ESP8266.

Unable to Assign IP Address to an Arduino MKR1000 Board

Failed to assign IP address to Arduino MKR WIFI 1010 board.

Unable to Assign IP Address to an Arduino MKR WIFI 1010 Board

Failed to assign IP address to Arduino MKR WIFI 1010 board.

Unable to Assign IP Address to an Arduino Board Connected to WiFi Shield

Failed to assign IP address to Arduino board connected to WiFi shield.

Expected Data Not Received on WiFi TCP or UDP Receive Block

Data received on the WiFi TCP Receive block or WiFi UDP Receive block is incorrect.

WiFi TCP/IP Send or Receive Server Block Is Unable to Communicate to TCP/IP Client

In server mode, the WiFi TCP/IP block is unable to communicate with TCP/IP client.

WiFi TCP/IP Send or Receive Client Block Is Unable to Communicate to TCP/IP Server

In client mode, the WiFi TCP/IP block is unable to communicate with TCP/IP server.

WiFi ThingSpeak Write Block Unable to Upload Data to a ThingSpeak Channel

Data is not uploaded on ThingSpeak channel.

注目の例