问题描述
我想将Flask构建的Web应用程序转换为可以在我的边缘设备上运行的边缘模块.
例如
从烧瓶导入烧瓶中的app = Flask(__ name__) @ app.route('/') def hello_world(): 如果'__name =='
app.run(host ='0.0.0.0')
返回'Hello,World!'
如果要使它成为边缘模块,应该怎么办?
我找到的文档并没有说明如何构建自己的模块的详细信息.
p.s.我已经知道如何使用Azure门户和VS代码在边缘设备上设置模块.
I want to translates a web app which is built by Flask into a edge module that can run on my edge device.
e.g.
from flask import Flask app = Flask(__name__) @app.route('/') def hello_world(): return 'Hello, World!'
if __name == "__main__":
app.run(host='0.0.0.0')
If I want to make this become a edge module, what should I do?
The docs I can find don't tell the details about how to build my own module.
p.s. I have already know how to use Azure portal and VS code to set modules on edge device.
这篇关于关于如何构建IoT边缘模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!