Skip to content

Can't connect correctly to Uno #50

Open
@balage1551

Description

@balage1551

I've installed StandardFirmata on my Uno R3.
I also followed the temporal hack in #48 to avoid crash.
Now I try to connect to the device:

        val device: IODevice = FirmataDevice(JSerialCommTransport("COM3")) // using the name of a port
        device.start() // initiate communication to the device
        device.ensureInitializationIsDone() // wait for initialization is done
        device.pins.forEach { p ->
            println(""+p.index +" -> "+p.supportedModes)
        }
        device.stop() // stop communication to the device

But the ensureInitializationIsDone function throws time out exception. Also (though I think it is a consequence of the previous error), listing the pins returns empty set.

Is there any step I missed?

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