Skip to content

Clarification needed: Does sendData() generate a local receive event? #934

@nocard-code

Description

@nocard-code

Title: Clarification needed: Does sendData() generate a local receive event?

Environment:

  • Meshtastic Python library (current version)
  • TCPInterface
  • Single node test
  • Channel 0
  • PRIVATE_APP (port 256)

Test:

packet = iface.sendData(
b"BP26TEST",
destinationId="!1de91aa0",
portNum=256,
wantAck=True,
)

Observed behavior:

  • sendData() returns successfully
  • Packet ID is returned
  • ROUTING_APP ACK is received
  • requestId matches the packet ID
  • errorReason = NONE

However, no PRIVATE_APP receive event is observed.

The same result occurs when sending to:

  • the node itself
  • broadcast (^all)

Questions:

  1. Is a locally generated PRIVATE_APP packet expected to appear in "meshtastic.receive" events?
  2. Is self-receive intentionally suppressed?
  3. Is broadcast self-receive intentionally suppressed?
  4. What is the recommended minimal test to verify reception of custom payload bytes sent with "sendData()"?

Expected outcome:

A documented minimal example that demonstrates successful transmission and reception of arbitrary application bytes using "sendData()".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions