当前位置:网站首页>Development of IOT device end - establishment of development environment
Development of IOT device end - establishment of development environment
2022-06-24 07:09:00 【fancyxu】
In order to better learn the relevant knowledge and practice of the IOT device side , Based on the previous iot hub c sdk Reorganized and rewritten iot-hub-device-c-sdk
The following is for this warehouse , Describe how to build the corresponding development environment .
summary
Tools | explain |
|---|---|
wsl | windows On linux Subsystem , In the windows Carry out simple linux Development |
vscode | Code editor , Cooperate with plug-ins to write code |
WSL The following software needs to be installed :
- cmake: The compilation framework of the project is built based on cmake
- gcc:linux Upper compiler
- g++: Provide googletest Unit test support
- googletest: Provide the unit test framework of the project
- gcovr: Provide unit test coverage statistics
- git: Code version control
- doxygen: Provide code annotation formatting and annotation visualization support
- graphviz: coordination doxygen Use , Provide header file dependency view
vscode The following plug-ins need to be installed :
- C/C++: Provide C/C++ Language development support
- Doxygen Documentation Generator: Provide doxygen Style annotation generation
- markdownlint:markdown Format check , Improve document quality
- Code Spell Checker: Word spelling check , Improve code quality
- GitLens:git Information and diff Support
WSL install
- Control panel -> Procedures and functions -> Enable or close Windows function -> Check Apply to Linux Of Windows Subsystem
- stay Microsoft Store Download Ubuntu
- Software installation
apt-get update # Install the required software apt-get install git cmake gcc g++ doxygen graphviz # install googletest apt-get install googletest gcovr cd /usr/src/googletest mkdir -p build cd build cmake .. && make && make install
VSCode install
- vscode install , See https://code.visualstudio.com/
- find Extensions, Search and install the corresponding plug-ins in turn
Development Notes
The IOT device end mainly uses C Language development , In order to improve the project quality , It needs to be developed according to the unified specification , It needs to be read carefully :
meanwhile , Need to follow Doxygen Specification , And based on googletest Write corresponding unit tests , Ensure unit test coverage .
边栏推荐
- Decryption of the original divine square stone mechanism
- In the middle of the year, I have prepared a small number of automated interview questions. Welcome to the self-test
- You have a chance, here is a stage
- [Yugong series] June 2022 asp Basic introduction and use of cellreport reporting tool under net core
- JVM調試工具-Arthas
- 1. go deep into tidb: see tidb for the first time
- setInterval里面的函数不能有括号
- Multi sensor fusion track fusion
- If you want to learn programming well, don't recite the code!
- JSON formatting method advantages of JSON over XML
猜你喜欢

2022蓝队HW初级面试题总结

MAUI使用Masa blazor组件库

Typora收费?搭建VS Code MarkDown写作环境

Application of intelligent reservoir management based on 3D GIS system

Open source and innovation

【愚公系列】2022年6月 ASP.NET Core下CellReport报表工具基本介绍和使用

华为云低时延技术的九大绝招

leetcode:84. The largest rectangle in the histogram

Unexpected token u in JSON at position 0

Localized operation on cloud, the sea going experience of kilimall, the largest e-commerce platform in East Africa
随机推荐
Spark累加器和廣播變量
LuChen technology was invited to join NVIDIA startup acceleration program
Asp+access web server reports an error CONN.ASP error 80004005
What is the OSI seven layer model? What is the role of each layer?
I failed to delete the database and run away
0 foundation a literature club low code development member management applet (III)
Computing power and intelligence of robot fog
How do I turn off win10 automatic update? What are the good ways?
JVM debugging tool -jvisualvm
App management platform app host
Are internal consultants and external consultants in SAP implementation projects difficult or successful? [English version]
JVM調試工具-Arthas
mysql中的 ON UPDATE CURRENT_TIMESTAMP
How to build an app at low cost
How to send SMS in groups? What are the reasons for the poor effect of SMS in groups?
JVM debugging tool -arthas
Project demo
Go operation SQLite code error
Mysql开启BINLOG
Jumping game ii[greedy practice]