first commit

This commit is contained in:
xin
2024-07-19 13:58:44 +08:00
commit 3efe6cb5b6
42 changed files with 7606 additions and 0 deletions

View File

@ -0,0 +1,10 @@
const myaxios = require('axios');
myaxios.defaults.baseURL = 'http://82.156.1.111:18083';
const mqtusername = 'admin';
const mqtpassword = 'licahk';
const input = mqtusername+":"+mqtpassword;
const token = Buffer.from(input).toString('base64');
//console.log(token);
myaxios.defaults.headers.common['Authorization'] = 'Basic ' + token;
module.exports = myaxios