Log in

View Full Version : Enumerate the CAN bus with C++ WPILib?


kenfox
17-01-2013, 07:46
I think I know how to send the enumerate command:

sendMessage(CAN_MSGID_API_ENUMERATE, NULL, 0);

Now how to use receiveMessage() for the responses? Just iterate over the possible device IDs with a 0 second timeout?

Will the same solution for getting enumerate responses also work for getting the enumerate message after a power reset?