• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Difficulté à importer le module 'net' de js dans node red, pouvez-vous m'aider svp!

Q&A Forum › Category: Raspberry Pi › Difficulté à importer le module 'net' de js dans node red, pouvez-vous m'aider svp!
0 Vote Up Vote Down
YOBOI CHRISTOPHE ASSEUMAN asked 3 months ago

flow.set(‘net’, require(‘net’));

const net = flow.get(‘net’);
const client = new net.Socket();
const host = ‘192.168.2.222’;
const port = 5200;

client.connect(port, host, () => {
console.log(‘Connecté à l\’afficheur’);
client.write(msg.payload); // Envoyer la trame
client.end(); // Fermer la connexion
});

Question Tags: implementation d'une communication ethernet avec un afficheur geant
2 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 3 months ago

Hi
Can you tell me which project are you following?
Regards,
Sara

0 Vote Up Vote Down
Sara Santos Staff answered 3 months ago

Hi
Can you tell me which project are you following?
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.