I'm on the galileo gen 2 running the latest iotdk image. I've done a board firmware upgrade via the arduino console (not related im guessing) and also run opkg update and opkg upgrade, so not really sure what version of mraa. I would just use the arduino ide, but I'd like to export the data into a JSON and send that out, so I figured a C or python script would do the trick best?
Thanks for the interest,
That integer looks to be the memory location of the gpio8 structure. I think you need to read the pin value with:
"The value of pin 8 is %d\n"