0

I'm trying this package usb_serial to communicate with my hardware devices like Arduino, Esp8266, Esp32, FTDI board, etc.,

Right now I'm using a board with a CH340 chip in it. Device details are matching as mentioned in device_filter.xml
enter image description here

In device_filter.xml
enter image description here

Am I missing somthing here, please help me if you know. Thank you

Sanjay TM
  • 369
  • 2
  • 17

2 Answers2

0

I found the solution.
In the example code I commented subtitle: Text(device.manufacturerName!), line.
The reason is I was using an unbranded CH340 chip, which did not have the manufacturer's name on it.

Sanjay TM
  • 369
  • 2
  • 17
0

I too had this problem and commenting out the subtitle line fixed it for me.

P.S. I added a null check instead...

subtitle: Text(device.manufacturerName ?? "Unknown Manufacturer"),
Suraj Rao
  • 29,388
  • 11
  • 94
  • 103
Martin
  • 1
  • 1