Skip to content

How do I connect with an IP? #222

@spyshower

Description

@spyshower

Description

I am trying to use

 const printer = new Printer({
                // target: 'TCP:192.168.1.95',
                target: 'TCP:XX:XX:XX:XX:XX:XX',
                deviceName: 'TM-T88V',
            });

either specifying the IP or the MAC address but none of these work.

Both times I get [PrinterError: Failed to open the device.]

The device is reachable through the manufacturer's demo app.

React Native 0.76
HPRT TP80K printer

Steps to reproduce

Open printer and get IP/MAC
Use the app to connect

react-native-esc-pos-printer version

4.4.1

React Native version

0.76.9

Platforms

Android

Workflow

None

Architecture

Fabric (New Architecture)

Build type

None

Device

None

Device model

No response

Acknowledgements

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions