0

How to use Adafruit IO service with HardwareSerial
Moderators: adafruit_support_bill, adafruit

Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
Please be positive and constructive with your questions and comments.

How to use Adafruit IO service with HardwareSerial

by LLenvir on Fri Jan 29, 2021 11:57 am

Hi nice people,

I am trying to use a board that does not support Softwareserial, but only HardwareSerial.
The boards are Arduino MKR 1000 and Zero.
The GSM module connected is SIMcom808.

I would like to be able to update some feeds via MQTT.

Has anyone had any previous experience in this issue?
Are there dedicated libraries?

Thank you very much for any help.

LLenvir
 
Posts: 8
Joined: Tue Dec 29, 2020 8:32 am

Re: How to use Adafruit IO service with HardwareSerial

by adafruit_support_mike on Sat Jan 30, 2021 6:57 pm

That should be easy. Just modify the code to use the hardware Serial interface instead of SoftwareSerial.

The SoftwareSerial library's interface is the same as hardware Serial's, so the rest of the code should work without any other modification.

adafruit_support_mike
 
Posts: 61875
Joined: Thu Feb 11, 2010 2:51 pm

Re: How to use Adafruit IO service with HardwareSerial

by LLenvir on Tue Feb 02, 2021 7:21 am

Hi mike,

thanks for your help.
I'm a newer in serial comunication, so do you have some guide to suggest me?

LLenvir
 
Posts: 8
Joined: Tue Dec 29, 2020 8:32 am

Re: How to use Adafruit IO service with HardwareSerial

by LLenvir on Tue Feb 02, 2021 7:33 am

Thank you a lot.

LLenvir
 
Posts: 8
Joined: Tue Dec 29, 2020 8:32 am

Re: How to use Adafruit IO service with HardwareSerial

by adafruit_support_mike on Tue Feb 02, 2021 11:29 pm

We don't have any guides for that, but the modifications are small. What Serial interface are you using on the Arduino?

adafruit_support_mike
 
Posts: 61875
Joined: Thu Feb 11, 2010 2:51 pm

Please be positive and constructive with your questions and comments.