Skip to content

Commit 52c4ec2

Browse files
committed
Simplify example
1 parent 07f7de0 commit 52c4ec2

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

libraries/ESP_NOW/examples/ESP_NOW_Serial/ESP_NOW_Serial.ino

+4-8
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,15 @@
3232
#if ESPNOW_WIFI_MODE_STATION // ESP-NOW using WiFi Station mode
3333
#define ESPNOW_WIFI_MODE WIFI_STA // WiFi Mode
3434
#define ESPNOW_WIFI_IF WIFI_IF_STA // WiFi Interface
35-
36-
// Set the MAC address of the device that will receive the data
37-
// For example: F6:12:FA:42:B6:E8
38-
const MacAddress peer_mac({0xF6, 0x12, 0xFA, 0x42, 0xB6, 0xE8});
3935
#else // ESP-NOW using WiFi AP mode
4036
#define ESPNOW_WIFI_MODE WIFI_AP // WiFi Mode
4137
#define ESPNOW_WIFI_IF WIFI_IF_AP // WiFi Interface
42-
43-
// Set the MAC address of the device that will receive the data
44-
// For example: F4:12:FA:40:64:4C
45-
const MacAddress peer_mac({0xF4, 0x12, 0xFA, 0x40, 0x64, 0x4C});
4638
#endif
4739

40+
// Set the MAC address of the device that will receive the data
41+
// For example: F4:12:FA:40:64:4C
42+
const MacAddress peer_mac({0xF4, 0x12, 0xFA, 0x40, 0x64, 0x4C});
43+
4844
ESP_NOW_Serial_Class NowSerial(peer_mac, ESPNOW_WIFI_CHANNEL, ESPNOW_WIFI_IF);
4945

5046
void setup() {

0 commit comments

Comments
 (0)