Skip to content

Can't find printer device #233

@damathryx

Description

@damathryx

Description

Unable to Discover Network Printer (Epson TM-T82X)

Platform: Android


Description

Does not detect an Epson TM-T82X printer connected via Ethernet. The printer is reachable and can successfully receive and print raw ESC/POS commands over TCP, but the library fails to discover it.


What Works

  • Printer is on the same local network as the Android and macOS devices.

  • IP is reachable via ping or TCP tools.

  • Raw print works via command-line:

    echo -e $'\x1B\x40Test\n\n\n\x1D\x56\x41' | nc 192.168.254.121 9100
  • Epson utility apps can connect

  • We're using version 2.5.1 before we updated all dependencies and it works


Environment

react-native-esc-pos-printer: 4.4.3
React Native: 0.80.1
Device: Lenovo Tablet / Pixel Emulator
Printer: Epson TM-T82X (Ethernet)

Steps to reproduce

What Fails

  •   await PrintersDiscovery.start({
      	timeout: 2000,
      	filterOption: {
      		deviceModel: DiscoveryFilterOption.MODEL_ALL,
      	},
      });
    
  • PrintersDiscovery.onDiscovery is not triggered
  • 
    const { start, isDiscovering, printers } =
      usePrintersDiscovery();
    
      useEffect(() => {
        start();
      }, []);
      
    

printers returns empty array


react-native-esc-pos-printer version

4.4.3

React Native version

0.80.1

Platforms

Android

Workflow

None

Architecture

None

Build type

None

Device

None

Device model

Lenovo tablet

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