not answering your question but in general:
which platform are you on?
have you latest MRAA running on your target?
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"
That makes a lot of sense, I should've seen that lol.
That's definitely what was wrong with it, I simply changed that line and voila. Thanks, Brian!