I am a beginner at linux C programming.
I am trying to connect to a power meter device so that I may read values.
If I plug/unplug my USB device, I find that my power meter is identified in the /dev folder as usbdev6.6 and as "usb-187b-DENT_USB-if00" in folder /dev/serial/by-id. I trying to use "open" to just start the process of connecting to this device. With the code below, I keep seeing a return value of -1 from the "open statement. If anyone has any insight as to what the problem is, I would appreciate it.