# Sending Commands over TCP with a node only for USB

**URL:** <https://discourse.nodered.org/t/sending-commands-over-tcp-with-a-node-only-for-usb/18160>\
**Category:** General\
**Created:** [19 November 2019 19:25 UTC](https://discourse.nodered.org/t/sending-commands-over-tcp-with-a-node-only-for-usb/18160 "2019-11-19T19:25:59Z")\
**Posts on this page:** 1\
**Showing post:** 37

<div class="post-metadata">

**Author:** ![Observatory\_Gromme](https://avatars.discourse-cdn.com/v4/letter/o/a587f6/32.png) [@Observatory\_Gromme](https://discourse.nodered.org/u/Observatory_Gromme)\
**Post date:** [7 February 2020 14:44 UTC](https://discourse.nodered.org/t/sending-commands-over-tcp-with-a-node-only-for-usb/18160/37 "2020-02-07T14:44:56Z")

</div>

Thank you for this great support!:  
I changed the python script, and tested it with relay 1 of the I2C board.  
See below what i get back ( first i sended ON, then OFF )

Subscribed: None 1 (0,)  
We are here, waiting for button commands...  
['I2C', '192.168.12.194', '50', '1', 'ON']  
[1, 2, 4, 8, 16, 32, 64, 128]  
[1, 2, 4, 8, 16, 32, 64, 128]  
['I2C', '192.168.12.194', '50', '1', 'OFF']  
[1, 0, 4, 0, 16, 0, 64, 0]  
[0, 0, 4, 0, 16, 0, 64, 0]

---

_[View the full topic](https://discourse.nodered.org/t/sending-commands-over-tcp-with-a-node-only-for-usb/18160)._
