guido
1
Hello,
I’m trying to read a co-processor gpio pin using the fin-block but i receive a javascript crash when i send a GET request using the command
curl -X GET localhost:1337/pin -H “Content-Type: application/json” --data ‘{“pin”: 8}’
but i receive the following output
The “listener” argument must be of type function. Received undefined
mpous
3
Hello @guido thanks for your message!
I linked internally your message with this Github issue that already existed → GET/POST pin endpoint is not functioning correctly · Issue #34 · balenablocks/fin-block · GitHub
I also pinged the fin-block team but feel free to contribute on the code if you can 