MeshCore icon

MeshCore

Interact with a MeshCore device over TCP/WiFi

Message → Send Direct Message and Await Reply

AI-generated

Summary

Sends a direct text message to a contact and waits for a reply from that contact. When reliable delivery is enabled, completes the delivery retry and acknowledgment process before starting the reply wait.

Inputs

  • Contact Public Key (required) — Target contact's public key in hex; the first 6 bytes are used for routing and to match the reply.
  • Message (required) — Text to send.
  • Text Type — Message format: Plain, CLI Data, or Signed Plain. Defaults to Plain.
  • Reliable Delivery — Enable delivery retries and confirmation before waiting for a reply. Defaults to off. When enabled, the operation uses the path and flood retry phases and can fail if delivery is not confirmed.
  • Ack Timeout (Ms) — Time to wait for a delivery confirmation per attempt; shown when Reliable Delivery is enabled. Defaults to 15000 ms.
  • Path Retries — Number of attempts using the stored route before falling back to flood routing; shown when Reliable Delivery is enabled. Defaults to 2.
  • Flood Retries — Number of flood-routing attempts after the path phase; shown when Reliable Delivery is enabled. Defaults to 2.
  • Force Flood — Skip path attempts and start with flood routing; shown when Reliable Delivery is enabled. Defaults to false.
  • Reset Path on Flood Fallback — Clear the stored route when switching from path retries to flood retries; shown when Reliable Delivery is enabled. Defaults to true.
  • Reply Timeout (Ms) — Time to wait for a matching reply after sending; defaults to 30000 ms.

Output shape

A single record containing the received reply.

The operation waits for a reply matching the target contact's public-key prefix. If no matching reply arrives before the timeout, or reliable delivery is not confirmed when enabled, execution fails.

Links

Discussion