How I can estabilish Android to Arduino Serial communication?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By fabiodellaria

Hi to all,

I need to create a Godot Android App able to establish a Serial communication (via USB) with an Arduino device.

I just see the existence of the GDSercomm library (GitHub - Superwaitsum/GDSercomm: GDNative Serial port communication), but it seems to works ONLY on Win/Mac and Linux, but I need my App works on Android.

Help will be really appreciated! :wink:


:bust_in_silhouette: Reply From: papyDoctor

If using C# is an option for you, you can use the SerialPort from System.IO.Ports
It’s fast, efficient and multiplatform :slight_smile:

yeah, but is this possible to do in GDscript as well? ^^

TakeLime | 2021-07-20 01:20

No, you’ve to do yourself a GDNative script and you’ve to write it for Android.

papyDoctor | 2021-07-20 09:24

I tried using C# with System.IO.Ports and turns out it is not multi platform it only supports windows, not android or even linux.