LoginSignup
0
0

More than 1 year has passed since last update.

ESPNow(に限らずSTAモード)のChannel指定方法

Posted at

下のイメージ。何もしないとデフォルトの1チャンネル。
同じチャンネルでしか通信できない模様。

#include <esp_wifi.h>// して

void setup() { //の
  WiFi.mode(WIFI_STA); // した後に
  esp_wifi_set_channel(CHANNEL, WIFI_SECOND_CHAN_NONE); // チャンネルを指定してあげる

APの設定とかその他あれこれはこちらに書いておいた。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0