一、引言
本文将帮助开发者了解爱星物联私有云的开发环境和其相关工具链。
二 、开发环境配置
硬件环境
推荐使用高性能的计算机或服务器,确保足够的计算资源和存储空间。
推荐配置:2~4核CPU,8G以上内存服务器2台
软件环境
操作系统:推荐使用Centos7或以上版本,具体是Centos、ubuntu或者redhat的选择取决于开发者的习惯和成本。
编程语言:爱星物联使用Go、HTML5、Vue、C、Java、Swift和Objective-C。
开发工具:如Visual Studio Code、Android Studio、Goland、XCode等集成开发环境(IDE),以及相应的编译器和调试工具。
网络配置
确保开发环境能够连接到互联网,以便下载所需的软件包和依赖项。
另外根据你的网络情况建议进行如下配置:
配置NPM国内镜像仓库地址
查看配置,找到 metrics-registry
npm config ls -l
通过该命令将地址切换为淘宝NPM镜像
npm config set registry [[url]http://registry.npmmirror.com[/url]](http://registry.npmmirror.com)
淘宝NPM镜像:http://registry.npmmirror.com
阿里云NPM镜像:https://npm.aliyun.com
腾讯云NPM镜像:https://mirrors.cloud.tencent.com/npm/
华为云NPM镜像:https://mirrors.huaweicloud.com/repository/npm/
网易NPM镜像:https://mirrors.163.com/npm/
中国科学技术大学开源镜像站:http://mirrors.ustc.edu.cn/
清华大学开源镜像站:https://mirrors.tuna.tsinghua.edu.cn/
配置Go模块地址
linux中配置go语言模块下载代理
export GOPROXY=https://goproxy.io
export GO111MODULE=on
go env -w GOPROXY=https://goproxy.cn,[url]https://mirrors.aliyun.com/goproxy/[/url],[url]https://goproxy.io[/url],direct
window中配置go语言模块下载代理
set GOPROXY=https://goproxy.io
set GO111MODULE=on
go env -w GOPROXY=https://goproxy.cn,[url]https://mirrors.aliyun.com/goproxy/[/url],[url]https://goproxy.io[/url],direct
三、工具选择
MQTTx (https://mqttx.app/zh/features)
可以使用MQTTx工具实现对设备消息的下发和订阅,用于产品开发过程模拟设备消息的推送和订阅等。

串口工具(可以使用安信可的串口调试工具AiThinker Serial Tool,也可以使用sscom5.13.1)

烧录工具
烧录工具不同的模组会提供不同的烧录工具,可以到安信可帮助中心获取;(https://docs.ai-thinker.com/wb2)
AI-WB烧录工具
https://docs.ai-thinker.com/[/url]_media/ai-wb2/docs/v1.7.4-release.zip

mesh设备烧录工具
https://www.telink-semi.com/

Redis客户端工具
根据个人习惯使用,我使用的是Another Redis Desktop Manager
https://github.com/qishibo/AnotherRedisDesktopManager

Clickhouse客户端工具
Clickhouse客户端工具我使用的DBdeaver,该工具https://dbeaver.io/

四、开发步骤
环境搭建
传统方式
https://bbs.ai-thinker.com/forum.php?mod=viewthread&tid=44343&extra=
Docker方式
https://bbs.ai-thinker.com/forum.php?mod=viewthread&tid=45164&extra=
代码编写
APP原生开发
xcode、Android Studio
前端开发
Visual Studio Code
后端开发
Goland、Visual Studio Code
嵌入式端开发
Visual Studio Code、Visual Studio
五、总结
爱星物联私有云的开发,主要使用比较传统的go、vue、ios、android和c语言的开发工具进行研发,因为嵌入式端模组不同,可能需要不同的烧录工具,具体烧录工具都可以在https://docs.ai-thinker.com中寻找,找不到的可以在评论区留言。