Catch name device i...
 
Notifications
Clear all

[Solved] Catch name device into file SHCustomProtocol

4 Posts
2 Users
0 Reactions
1,251 Views
(@thundertrucks)
Active Member
Joined: 4 years ago
Posts: 19
Topic starter  

Hi,

It's possible catch the device name of Arduino into the file SHCustomProtocol?

I ask this because I needed to use an Arduino Uno with TFT display and one or two Arduino Mega for servo and led.

Thanks in advance

Best regards

Claudio Accotardi


   
Quote
(@thundertrucks)
Active Member
Joined: 4 years ago
Posts: 19
Topic starter  

Hi,

I solve in this way, make a file for each Arduino Board.

First to compile the sketch I change the file.

Thanks

Best regards

Claudio


   
ReplyQuote
(@admin5435)
Prominent Member Admin
Joined: 7 years ago
Posts: 732
 

Hello !

Alternatively you can use DEVICE_NAME it's a constant containing the name string.


   
ReplyQuote
(@thundertrucks)
Active Member
Joined: 4 years ago
Posts: 19
Topic starter  

@admin5435

Thanks.

Best regards

Claudio


   
ReplyQuote
Share: