On 10/11/17 18:40, Mats Wichmann wrote:
> On 11/10/2017 05:16 AM, 翟墨 wrote:
>> Dear developers:
>>        Hi! I built iotivity-1.2.1 both on Raspberry 3. I want to modify the
>> code of  simpleserver to operate the gpio to control the led light state.
This is the good way to check, 1st time blinking led experience is magic ;)
but I think simpleserver is not that simple for that.

So I've made simplEST servers to expose single binary switch resource
and shared some hints for this check links from this page:

https://blogs.s-osg.org/get-started-iotivity-interactions-artik10-tizen/

(...)
>> However, I met a problem: undefined reference to 'digitalWrite' when
>> Linking. I found the wiringPi.h and wiringPi.so in lib and include, so I
>> don't know what's problem.
Try to make a simple program, without iotivity,
on issue show us full log of build.

>> Can any one help me ?
>>       Zhai
Well, first let me suggest to build examples outside of iotivity source
tree.

For that I shared some sample projects you can use as skeleton to start
with:
http://git.s-osg.org/iotivity-example/plain/README.md

For dealing with GPIOs, let me suggest to try libmraa,
it does the hw abstraction and make your program portable, feel free to
fork:
https://github.com/TizenTeam/iotivity-example/tree/sandbox/pcoval/mraa

Or you can also also fallback to sysfs too:
https://github.com/TizenTeam/iotivity-example/blob/sandbox/pcoval/gpio/

Hope this will save you time.

-- 
mailto:[email protected] gpg:0x467094BC
https://blogs.s-osg.org/author/pcoval/

_______________________________________________
iotivity-dev mailing list
[email protected]
https://lists.iotivity.org/mailman/listinfo/iotivity-dev

Reply via email to