infoxicator / react-native-star-prnt

React-Native bridge to communicate with Star Micronics Bluetooth/LAN Printers
MIT License
67 stars 65 forks source link

Unable to know which connected printer the event comes from #50

Open joarwilk opened 4 years ago

joarwilk commented 4 years ago

Hi,

is there any way to know which connected printed the event comes from? I have multiple printers connected and right now I cant see which one has sent which event.

Thanks

infoxicator commented 4 years ago

I guess you can identify printers by the portName, if the model is the same you can change it on the printer settings.

joarwilk commented 4 years ago

@infoxicator But the events are not connected to the portName. Its just the event name and nothing else. Here is the iOS code:

-(void)didPrinterCoverOpen {
        [self sendData:@"printerCoverOpen" data:nil];
}

There is no printer metadata attached