Skip to main content

通过童心制物云服务可以进行人工智能、聊天机器人、常用网络 api 获取等常用云服务。

Project description

# 童心制物云服务 mkcloud

## 目前提供的功能

### 聊天机器人

发消息 mkcloud.robot.chat(‘哈哈哈哈’) 切换中英文服务 mkcloud.robot.setLanguage(‘en’)

### MqTT功能

  • 导入方式:

    from mkcloud.mqtt import mqtt

  • 设置参数

    mqtt.set_broker(‘mb1234’,’broker.emqx.io’,1883)

  • MQTT连接

    mqtt.connect()

  • 信息发送

    mqtt.publish_message(“topic”, “messages”)

  • 信息接收

    def callback(topic, data): print(“CallBack -Received”, data, “topic:”, topic) mqtt.set_callback(callback) mqtt.subscribe_message(“topic1”) mqtt.subscribe_message(“topic2”)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for mkcloud, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size mkcloud-0.1.0.tar.gz (4.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page