0.1.0 • Published 3 years ago

smos-js v0.1.0

Weekly downloads
11
License
-
Repository
-
Last release
3 years ago

SMoSNpm

Javascript utility library for SMoS

Install

npm install smos-js

Usage examples

import { Component } from '@angular/core';
import { SmosJsService } from 'smos-js'

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html'
})
export class AppComponent {

  constructor(private smosService: SmosJsService) {}

  public HandleIncomingHexString(hexString: string): SMoSObject | null {
    return this.smosService.DecodeMessageFromHexString(hexString);
  }

  public HandleOutgoingMessage(message: SMoSObject): string {
    return this.smosService.EncodeMessageToHexString(message);
  }

}
0.1.0

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago