node-tcrouter
  • Welcome
  • Getting Started
  • Javascript Docs
    • TCRouter
  • Guides
    • Status Information
    • Sending Text Messages
    • Receive Text Messages
    • Device Connection Status
    • Control IO
    • Sending Emails
    • Control VPN
  • Hardware
    • Overview
  • Setup
    • Setup Overview
    • Socket Server
    • Enable SMS
    • Enable Email
    • Setup VPN
Powered by GitBook
On this page

Was this helpful?

  1. Guides

Sending Text Messages

Send a Text Message

A valid phone number must be entered. This function will throw an error if an invalid number is entered

const tcr = require(" @phoenixcontactusa/node-tcrouter");

var TCRouter = new tcr("192.168.1.1", 1432, 3000);

TCRouter.sendSMS("1234567890", "Hello world from node-tcrouter")
  .then(res => {
    console.log(res);
  })
  .catch(e => {
    console.log(e);
  });
PreviousStatus InformationNextReceive Text Messages

Last updated 5 years ago

Was this helpful?