Skip to main content

NFC Functions

dev.wireless.nfc - wire path w\n - generated from fwMenuNFC.

enable_reader

Enable Reader. Enable/disable NFC reader with auto tag streaming

Requires power zone 13 (NFC/RFID). See Errors.

Wire command: w\n\r

ArgWire type
enabledec

Returns: none (Ok/Err only)

dev.wireless.nfc.enable_reader(enable: int) -> Result
ow_status ow_wireless_nfc_enable_reader(ow_device* dev, int32_t enable);
dev.wireless().nfc().enable_reader(enable: i32) -> Result<(), OwError>

The C and Rust signatures above are also the WASM guest signatures - the device API surface is identical; only the transport differs (ow_open_wasm(&dev) in C, OneWili::open() in Rust).

dev.wireless.nfc.enable_reader(enable) # check dev.ok

Print Card Info. Display detailed info about detected card

Wire command: w\n\c

Returns: none (Ok/Err only)

dev.wireless.nfc.print_card_info() -> Result
ow_status ow_wireless_nfc_print_card_info(ow_device* dev);
dev.wireless().nfc().print_card_info() -> Result<(), OwError>

The C and Rust signatures above are also the WASM guest signatures - the device API surface is identical; only the transport differs (ow_open_wasm(&dev) in C, OneWili::open() in Rust).

dev.wireless.nfc.print_card_info() # check dev.ok

get_status

Get Status (debug). Display NFC hardware state and debug info

Wire command: w\n\g

Returns: none (Ok/Err only)

dev.wireless.nfc.get_status() -> Result
ow_status ow_wireless_nfc_get_status(ow_device* dev);
dev.wireless().nfc().get_status() -> Result<(), OwError>

The C and Rust signatures above are also the WASM guest signatures - the device API surface is identical; only the transport differs (ow_open_wasm(&dev) in C, OneWili::open() in Rust).

dev.wireless.nfc.get_status() # check dev.ok

Events

Spontaneous frames this menu emits (not command responses). Text events arrive as [*<id> ...] frames (Python: Transport.events; C: ow_poll_text_event; Rust: poll_event -> Event::Text); binary events use the binary API below. The on-device rthon binding does not receive event streams in v1.

nfc (text)

NFC card status text (card detected / removed)

Payload fieldWire type
datastring