Constructors

  • The library send commands directly over wifi to your robot. You dont need an internet connection.

    Parameters

    • username: string

      your roomba's blid

    • password: string

      your roomba's password

    • ip: string

      your roomba's ip address

    • Optionalversion: 2 | 3

      (optional) your roomba's protocol version (1-3, defaults to 2)

    • Optionaloptions: number | object

      (optional) options or interval in miliseconds to emith mission event (defaults to 800ms)

    Returns Local

Methods

  • Returns Promise<{
        ok: null;
    }>

  • Parameters

    • Optionalcallback: ((args: any) => Promise<{
          ok: null;
      }>)
        • (args): Promise<{
              ok: null;
          }>
        • Parameters

          • args: any

          Returns Promise<{
              ok: null;
          }>

    Returns this

  • Returns Promise<{
        ok: null;
    }>

  • Returns Promise<{
        ok: null;
    }>

  • Returns Promise<{
        ok: null;
    }>

  • Parameters

    • OptionalwaitForFields: string[]

    Returns this

  • Parameters

    • OptionalcalwaitForFields: string[]

    Returns this

  • Parameters

    • OptionalwaitForFields: string[]

    Returns this

  • Parameters

    • OptionalwaitForFields: string[]

    Returns this

  • Emitted on successful Connection.

    Parameters

    • event: "connect"
    • listener: (() => void)
        • (): void
        • Returns void

    Returns this

  • Emitted after a reconnection.

    Parameters

    • event: "reconnect"
    • listener: (() => void)
        • (): void
        • Returns void

    Returns this

  • Emitted after a disconnection.

    Parameters

    • event: "close"
    • listener: (() => void)
        • (): void
        • Returns void

    Returns this

  • Emitted when the client goes offline.

    Parameters

    • event: "offline"
    • listener: (() => void)
        • (): void
        • Returns void

    Returns this

  • Emitted every time the Robot publishes a new message to the mqtt bus.

    Parameters

    • event: "update"
    • listener: ((data: Data) => void)
        • (data): void
        • Parameters

          Returns void

    Returns this

  • Emitted every emitIntervalTime milliseconds with the mission data. (util for mapping in models with position reporting)

    Parameters

    Returns this

  • Emitted on error.

    Parameters

    • event: "error"
    • listener: ((error: Error) => void)
        • (error): void
        • Parameters

          • error: Error

          Returns void

    Returns this

  • Emitted every time the Robot publish a new message to the mqtt bus. Will print the Full robot state!

    Parameters

    • event: "state"
    • listener: ((data: unknown) => void)
        • (data): void
        • Parameters

          • data: unknown

          Returns void

    Returns this

  • Returns Promise<{
        ok: null;
    }>

  • Returns Promise<{
        ok: null;
    }>

  • Returns Promise<{
        ok: null;
    }>

  • Returns Promise<{
        ok: null;
    }>

  • Returns Promise<{
        ok: null;
    }>

  • Returns Promise<{
        ok: null;
    }>

  • Returns Promise<{
        ok: null;
    }>

  • Returns Promise<{
        ok: null;
    }>

  • Returns Promise<{
        ok: null;
    }>

  • Returns Promise<{
        ok: null;
    }>

  • Returns Promise<{
        ok: null;
    }>

  • Returns Promise<{
        ok: null;
    }>

  • Parameters

    • Optionalcallback: ((args: any) => Promise<{
          ok: null;
      }>)
        • (args): Promise<{
              ok: null;
          }>
        • Parameters

          • args: any

          Returns Promise<{
              ok: null;
          }>

    Returns this

  • Parameters

    • Optionalcallback: ((args: any) => Promise<{
          ok: null;
      }>)
        • (args): Promise<{
              ok: null;
          }>
        • Parameters

          • args: any

          Returns Promise<{
              ok: null;
          }>

    Returns this

  • Returns Promise<{
        ok: null;
    }>

  • Returns Promise<{
        ok: null;
    }>

  • Returns Promise<{
        ok: null;
    }>