@folotoy/folotoy-openclaw-plugin 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@
2
2
  "id": "folotoy-openclaw-plugin",
3
3
  "name": "FoloToy",
4
4
  "description": "Empower your FoloToy with OpenClaw AI capabilities.",
5
- "version": "0.2.0",
5
+ "version": "0.2.1",
6
6
  "channels": ["folotoy"],
7
7
  "configSchema": {
8
8
  "type": "object",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@folotoy/folotoy-openclaw-plugin",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Empower your FoloToy with OpenClaw AI capabilities.",
5
5
  "keywords": [
6
6
  "folotoy",
package/src/config.ts CHANGED
@@ -31,7 +31,7 @@ export type FlatChannelConfig = {
31
31
  }
32
32
 
33
33
  export const DEFAULT_API_URL = 'https://api.folotoy.cn'
34
- export const DEFAULT_MQTT_HOST = process.env.FOLOTOY_MQTT_HOST ?? '198.19.249.25'
34
+ export const DEFAULT_MQTT_HOST = process.env.FOLOTOY_MQTT_HOST ?? 'f.qrc92.cn'
35
35
  export const DEFAULT_MQTT_PORT = 1883
36
36
 
37
37
  export function flatToPluginConfig(flat: FlatChannelConfig): PluginConfig {
package/src/index.ts CHANGED
@@ -81,6 +81,7 @@ const folotoyChannel: ChannelPlugin<FlatChannelConfig> = {
81
81
  }
82
82
 
83
83
  const mqttConfig = flatToPluginConfig(account)
84
+ log?.info?.(`Connecting to MQTT broker ${mqttConfig.mqtt.host}:${mqttConfig.mqtt.port}...`)
84
85
  const credentials = await resolveCredentials(mqttConfig)
85
86
  const client = await createMqttClient(mqttConfig, credentials)
86
87
  const inboundTopic = buildInboundTopic(credentials.toy_sn)