Skip to content

Serial Over LAN (SOL)

Not sure how to implement? View the UI Toolkit KVM Module Tutorial for a step-by-step walkthrough on pre-requisites and implementing a React Control using the UI Toolkit.

Add Serial Over LAN Control

The following code snippet shows how to add Serial Over LAN control to the React application. Open src/App.js, add the following code as show below:

Note

Change deviceId value to your device GUID mpsServer value to your MPS server address and appropriate port.

import React from "react";
import { Sol, MpsProvider } from "ui-toolkit";
import '../node_modules/ui-toolkit/i18n.ts'

const App = () => {
  const data = {
    mpsKey: '<MPS API key>'
  };
  return (
    <div>
      <MpsProvider data={data}>
        <Sol deviceId="038d0240-045c-05f4-7706-980700080009"
        mpsServer="<192.168.1.38>:3000"></Sol>
      </MpsProvider>
    </div>
  );
}

export default App;