如何解决使用esp_now定义mac地址
我正在尝试使用ESP立即使两个NodeMCU ESP32-s设备进行通信。
使用下面的示例代码,它使用“ 0xFF” mac地址进行编译,但是当我更改mac时,它将无法编译并给出下面引用的错误。
我的假设是uint8_t在库中未定义,但是库中确实包含esp_now.h文件。
我正在使用Arduino IDE。
/*
Rui Santos
Complete project details at https://RandomNerdTutorials.com/esp-now-esp32-arduino-ide/
Permission is hereby granted,free of charge,to any person obtaining a copy
of this software and associated documentation files.
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
*/
#include <esp_now.h>
#include <WiFi.h>
// REPLACE WITH YOUR RECEIVER MAC Address
uint8_t broadcastAddress[] = {0xFF,0xFF,0xFF};
sketch_oct04a:5:31:错误:无法找到数字文字运算符
'operator“” C“ uint8_t broadcastAddress [] = {8C,AA,B5,A2,8E,70};
找到多个库用于“ WiFi.h”。 C:\ Users ###### \ AppData \ Local \ Arduino15 \ packages \ esp32 \ hardware \ esp32 \ 1.0.4 \ libraries \ WiFi
未使用:C:\ Program Files(x86)\ Arduino \ libraries \ WiFi退出状态1
指数没有数字
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。