Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

连接时mqtt.js报错 TypeError: WS is not a constructor #4

Open
akshish1 opened this issue Dec 11, 2022 · 1 comment
Open

连接时mqtt.js报错 TypeError: WS is not a constructor #4

akshish1 opened this issue Dec 11, 2022 · 1 comment

Comments

@akshish1
Copy link

const host = 'mqtt://83PXLS57B2.iotcloud.tencentdevices.com';
const options = {
protocolVersion: 3, //MQTT连接协议版本
clientId: 'mqttx_d0127534',
clean: true,
username: '83PXLS57B2test;12010126;53af8;1678464000',
password: 'f815e0d37a1ec3c656c6140eb0501fd088558a4eb55e19e5e86adcaa901ead6f;hmacsha256',
port: 1883,
reconnectPeriod: 1000,
connectTimeout: 30 * 1000,
resubscribe: true
};

@wangweios
Copy link

我也是 大佬解决了吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants