change mqtt using env
This commit is contained in:
@@ -20,7 +20,7 @@ function App() {
|
|||||||
|
|
||||||
// MQTT connection options
|
// MQTT connection options
|
||||||
const mqttOptions = {
|
const mqttOptions = {
|
||||||
host: '117.102.231.130',
|
host: `${import.meta.env.VITE_MQTT_SERVER}`,
|
||||||
// host: 'mosquitto-apotek-2',
|
// host: 'mosquitto-apotek-2',
|
||||||
port: 7001,
|
port: 7001,
|
||||||
// protocol: "mqtt",
|
// protocol: "mqtt",
|
||||||
|
|||||||
Reference in New Issue
Block a user