Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / how to communicate with agk, seriel, IO, i2c, or just via Multiplayer udp/TCP ?

Author
Message
Rings
15
Years of Service
User Offline
Joined: 15th Sep 2009
Location:
Posted: 22nd Oct 2019 11:20
I would like to feed my app with data, from external controller (here a arduino ).
the raspberry version does allow to read/write IO Pins, but i never saw a way
to communicate via seriell lines (using comports) (PI,windows/linux versions)
or i2c for the PI version.

Bengismo
7
Years of Service
User Offline
Joined: 20th Nov 2017
Location: Yorkshire, England
Posted: 22nd Oct 2019 11:59
On Windows(32/64) and linux versions I use a serial plugin (.dll and .so) to allow comport access as there is no built in serial port access functions built into AGK.

AGKPi doesnt seem to support plugins so I use PIGPIOD. You can then use network/multiplayer commands to then send commands locally to access serial port. (In theory, it would also give you access to I2C/PWM/SPI/SERVO too but I only used the serial port) . This is a really horrible library to have to write though and would consider if you really need it or not.

Login to post a reply

Server time is: 2024-11-22 10:14:14
Your offset time is: 2024-11-22 10:14:14