Read GPIO from Arduino code

I would like to read the GPIO state via UART from a ESP32.

However no matter what I am doing I get an “invalid property” response.

My code is:

Serial.println( odrive.getParameterAsString(“get_gpio_states()”));

I realise it shout be interpreted as an int but I am strogling to see anything correct.

Is my syntax correct?

Hi! You can only call functions over USB and CAN. Is it an option to switch to CAN for your application? What specifically are you looking to read over GPIO?

Hi Thank’s for your answer.

I have tried to setup the CAN-bus, but I am using an ESP32. I have lot of experience with the ESP32. Eg. I am using the double kernel. I have tried to setup CAN with the pull request for the ESP32 Odrive github library, but after several weeks of efforts I have gven up! I was able to get it compiled but newer working. As for now I am reluctant of switching to Teensy 4.1.

My objective with the GPIO is to get the Endstop and Homing up and running as described in the API. First I am attempting to get the GPIO running as a simple I/O.

I anticipate your answer also implies that I will newer be able to use the save_configuration() nor the reboot() procedures over the UART-communication.

Any suggestions? Right now I am out of ideas!