Import a contact
import_contactImport a contact into the local node's roster from its advert-packet hex bytes, typically obtained from another node's export or a QR scan.
Instructions
Add a contact to the local node's roster from its advert-packet bytes (hex). Typically obtained from another node's export_contact, a QR scan, or another out-of-band channel. The contact appears in survey_mesh and the meshcore://contacts resource after this.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| advertHex | Yes | the advert packet as hex bytes (e.g. the output of export_contact) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| imported | Yes | ||
| lengthBytes | Yes | number of advert-packet bytes consumed |