Could someone please explain how this code works?

I tried to connect to a hc-05 with the popular way on the Internet but kept getting an error(503) of mac address not found, I then found this block of code that works but don't understand how,.


I just started building apps 2 days ago so please give an explanation from the basics.
Thank you

1 Like

what block did you add

Where did you find this?

1 Like

Welcome Neil/

Here are several links to articles that explain 'how things work'
The resources to help you learn how to use the AI2 tools and explain what various components do. A very good way to learn App Inventor is to read the free Inventor's Manual here in the AI2 free online eBook App Inventor 2 Book: Create Your Own Android Apps ... the links are at the bottom of the Web page. The book 'teaches' users how to program with AI2 blocks.

There is a free programming course here Course In A Box and the aia files for the projects in the book are here: App Inventor 2 Book: Create Your Own Android Apps

How to do a lot of basic things with App Inventor are described here: How do you...? .

Also look here App inventor español. Offline. Tutorial. Ejemplos. Instalación. Códigos. Juegos. Curso gratis de App inventor. and here Tutorial Index | imagnity for more tutorials including Imagnity.com List Tutorial, Mirrored - @Saj

Learn about components Component Reference
and visit the Library The MIT App Inventor Library: Documentation & Support Help>Library on the MENU