Open GalaxyCal opened 2 years ago
I found a way to send data, how to get the port number parameter endpointNumber, please answer
device
@GalaxyCal - Hi, were you be able to send the data? I am trying to connect USB POS printer from flutter web. so i am not clear in this endpoint and TypedData. My data is in List
Future<UsbOutTransferResult> transferOut(int endpointNumber, TypedData data)
.
here what is endpointNumber and how to get the endpontNumber. Also, how to convert my List
can you please sample code if possible? Appreciate your response..
/// send data to usb transferOut(
dynamic device, endpointNumber, ByteBuffer data) {
return _platform.transferOut(device, endpointNumber, data);
}
Future
我找到发送数据的方法,其中endpointNumber这个端口号参数,是怎么获取的呢,求解答