Bluetooth & GPS Test Console

Uses the existing Bluetooth scan, pairWithDevice(), and unpairDevice() JavaScript bridge methods. In GPS mode, UUIDs are included in the pair request.

Checking native bridge…
Native implementation requirement: the current native implementation routes pairWithDevice() to OS bonding and unpairDevice() to bond removal. To make GPS mode work, the app must first implement UUID-based routing in BluetoothUtil: UUIDs present → GATT connect; no UUIDs → preserve classic pairing. GPS unpair must disconnect the active GATT session. This page sends the requested payloads but cannot add that native behaviour by itself.

1 · Scan devices

Calls WebToNativeInterface.startBluetoothScan(). The native scan returns one result payload after its scan window.

No scan results yet.
0Devices found
—Scan status
—Selected device

2 · Connect / pair or disconnect / unpair

Both UUIDs are included in the pairWithDevice() JSON request. Defaults match the W2N BLE simulator.

No request sent.
Waiting for an action…

3 · GPS live data & connection events

—GPS connection state
0NMEA events
0Valid checksums
0Invalid checksums
—Last NMEA time
—Last native result
Waiting for GPS NMEA events…

This page listens for GPS events delivered through the native callback hook (for example gpsConnectionState, gpsNmeaData, and gpsError). The exact event payload depends on the native integration.

4 · Event & diagnostic log