通过童心制物云服务可以进行人工智能、聊天机器人、常用网络 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mkcloud-0.1.0.tar.gz
(4.1 kB
view details)
File details
Details for the file mkcloud-0.1.0.tar.gz
.
File metadata
- Download URL: mkcloud-0.1.0.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d053b78e685444ca0fd15d5b481ca5253f2bfb4ed37a43df55856b31573f2f1 |
|
MD5 | 2ec87b37792639e9b5b1cc5f4f48a104 |
|
BLAKE2b-256 | 1d8c0c9ca861dd012d25c1067a6d67ad8b2c162a2d8ed58cbd50d68b2183822d |