Skip to content
This repository was archived by the owner on Aug 30, 2025. It is now read-only.
This repository was archived by the owner on Aug 30, 2025. It is now read-only.

TypeError: BroadlinkServer is not a function #6

@marcodesantis71

Description

@marcodesantis71

Hi,

I've installed the package on my Ubuntu 16.04 Server.

I copied index.js and command.js from example to home. And changed the values for my Broadlink.

But when I try to start I receive this error:

let app = BroadlinkServer(commands, key, rooms);
^

TypeError: BroadlinkServer is not a function
at Object. (/usr/lib/node_modules/broadlink-rm-http/index.js:11:11)
at Module._compile (internal/modules/cjs/loader.js:959:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
at Module.load (internal/modules/cjs/loader.js:815:32)
at Function.Module._load (internal/modules/cjs/loader.js:727:14)
at Function.Module.runMain (internal/modules/cjs/loader.js:1047:10)
at internal/main/run_main_module.js:17:11

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions