Content-Length: 265579 | pFad | http://github.com/happydasch/espnow_proxy

57 GitHub - happydasch/espnow_proxy: Basic ESPNow proxy component for esphome supporting unicast and broadcast.
Skip to content

Basic ESPNow proxy component for esphome supporting unicast and broadcast.

Notifications You must be signed in to change notification settings

happydasch/espnow_proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 Cannot retrieve latest commit at this time.

History

5 Commits
 
 
 
 
 
 

Repository files navigation

ESPNow Proxy

Basic ESPNow proxy component for ESPHome supporting Unicast and Broadcast.

ESPNow is a protocol that allows for direct communication between ESP32 (and ESP8266) devices without needing a WiFi router or access point. It uses the same radio chip as WiFi to establish a direct peer-to-peer connection.

This custom component for esphome supports only the sending and receiving of commands using esphome / ESP32.

There is no support for sensor data just the basic send/recv functionality using a simple data protocol with command ack.

The code is inspired by Beethowen and EasyNow: Beethowen Transmitter, Beethowen Receiver EasyNow

Remarks

When SoftAP is being used, the mac address will be different. This will cause issues, when only using the base mac address.

More info:

Unicast configuration

The unicast confiuration is being used, to only send to a specific device. This can be done by setting the mac address in receiver.

espnow_proxy:
  id: espnow_send
  channel: 1
  receiver: AA:BB:CC:DD:EE:FF
  peers:
    - mac_address: AA:BB:CC:DD:EE:FF
      name_prefix: Peer1

Multicast configuration

When the receiver is left out, broadcast address (FF:FF:FF:FF:FF:FF) will be used.

espnow_proxy:
  id: espnow_send
  channel: 1
  peers:
    - mac_address: AA:BB:CC:DD:EE:FF
      name_prefix: Peer1
    - mac_address: AA:BB:CC:DD:EE:FF
      name_prefix: Peer2

Component and Peer Events

espnow_proxy:
  id: espnow_send
  channel: 1

  on_packet_data:  # All packets
    - ...
  on_command_data:  # command data
    - ...
  on_send_started:  # sending starts
    - ...
  on_send_finished:  # sending finished
    - ...
  on_send_failed:  # sending failed
    - ...
  peers:
    - mac_address: AA:BB:CC:DD:EE:FF

      on_packet_data:  # Only packets directed to this peer
        - ...
      on_command_data:
        - ...
      on_send_started:
        - ...
      on_send_finished:
        - ...
      on_send_failed:

About

Basic ESPNow proxy component for esphome supporting unicast and broadcast.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/happydasch/espnow_proxy

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy