xbit

 

测试World Map of Makers Demo,创建一个简单的internet连接应用程序来查询web API的状态(目测是一个延时时间),并使用该信息切换LED。


官方仓库的Solution是基于VS2015的,本人VS2017下编译报错,故新建工程,把代码拷贝到新工程中。经过添加Reference、using xxx.xxx 等操作,可以使用。

当前能正常运行,但运行结果显示连接远程状态不成功,参数用的本地默认值。另外:

1、Debug.WriteLine可以输出到Output窗口,需要using System.Diagnostics;
2、await Task.Delay(blinkDelay)               需要using System.Threading.Tasks;
3、HttpClient client = new HttpClient()      需要using System.Net.Http;

分类:

技术点:

相关文章:

  • 2021-04-04
  • 2021-09-24
  • 2021-10-22
  • 2022-12-23
  • 2021-05-12
  • 2021-09-14
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-31
  • 2021-10-18
  • 2022-12-23
  • 2021-10-30
  • 2021-10-12
  • 2021-12-03
  • 2021-10-11
相关资源
相似解决方案