运行带有自定义程序的Windows 10 Core的Raspberry Pi 3显示出划掉的x [英] Raspberry Pi 3 running Windows 10 Core with custom program shows crossed-out x

查看:113
本文介绍了运行带有自定义程序的Windows 10 Core的Raspberry Pi 3显示出划掉的x的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个非常简单的项目,我的目标是能够通过运行Windows 10 IoT核心版的Raspberry Pi 3上的直接方法调用(通过Azure IoT中心)来切换LED.

I have a very simple project, in which I aim to be able to toggle an LED by means of a direct method call (through Azure IoT hub) on my Raspberry Pi 3, running Windows 10 IoT Core.

在当前状态下,我编写的程序仅显示一个带有x的白框,与邮件信封不同,并且后端灯光控制代码不响应直接方法调用.但是,当连接到Visual Studio 2017远程调试器时,UI后面的代码似乎运行得很好(或者我认为),因此我认为Direct Method调用的失败是由于我的Internet连接造成的(正如我在

In it's current state, the program I wrote shows only a white box with an x in it, not unlike a mail envelope, and the back end light-controlling code does not respond to direct method calls. However, when connected to a Visual Studio 2017 remote debugger, the code behind the UI seems to run perfectly fine (or so I thought), so I assumed the failure of Direct Method call was due to my internet connection (as I asked about in this question).

但是,结果表明,UI背后的代码正在请求将少量程序执行更新打印到文本框中,并且不存在的UI从未响应,从而阻止了程序继续打开Azure Iot首先是集线器设备客户端.

Turns out, however, that the code behind the UI was making a request to print a little program-execution update into a text box, and the nonexistent UI never responded, thus preventing the program from continuing on to open the Azure Iot Hub Device Client in the first place.

我不仅想完全放弃UI,还想弄清楚是什么阻碍了UI做任何事情.奇怪的是,当我第一次尝试我的程序(减去IoT代码)时,UI工作正常. 坦白说,我并没有最清楚的主意是什么可能突然出了问题(如果您想知道,Pi 处于正向模式),那么我想我最好的做法是发布我的代码并看看其他人是否可以复制问题.

Rather than just ditching the UI altogether, I'd like to figure out what is preventing my UI from doing, well, anything. What makes this odd is that, when I first tried out my program (minus the IoT Code) the UI worked just fine. Frankly, I haven't the foggiest idea what could suddenly be wrong (the Pi is in headed mode, if you were wondering), so I suppose my best course of action would be to publish my code and see if anyone else can replicate the issues.

与其将我的所有代码都转储到这篇文章中,否则有人不得不将其重构到一个项目中,然后可能丢失某些东西,等等...我只是将它们全部塞进了一个Git仓库中,可以在这里找到:

Instead of dumping all my code into this post, where someone would have to reconstruct it into a project, and then potentially be missing something, etc... I've simply shoved it all into a Git repo, which can be found here:

https://github.com/Hermanoid/UltimateLED2

我也有几个要问的问题...例如,我忽略了在回购中弄坏我的Raspberry Pi的设备密钥和ID.这可能是(中途可行的,或者至少是可能的)安全问题?

I have a couple asides to ask about as well... For one, I neglected to bleep out the Device Key and ID of my Raspberry Pi in the repo. Could that be a (halfway viable, or at least likely) security concern?

而且,我在VS错误列表中有大量版本不匹配警告.在其他项目中,我只是简单地在Web.xml或App.xml文件中启动一些版本重定向,但是(运行时指令" XML文件除外)这些重定向在该项目中不存在.我该怎么办才能解决这些问题?

And also, I have a truckload of version mismatch warnings in my VS error list. In other projects, I would simply spin up some version redirects in a Web.xml or App.xml file, but (with the exception of a "Runtime Directives" XML file) those don't exist in this project. What can I do to remedy these issues?

谢谢!

Lucas Niewohner

Lucas Niewohner

推荐答案

应用程序的功能需要增强.由于应用程序现在需要从其发送双向信息到天蓝色.它需要在应用程序清单中检查客户端和服务器两者

The capabilities of the application need to be enhanced. Since the application now needs to send bi directional information from it to azure. It needs both client and server checked in the application manifest

这篇关于运行带有自定义程序的Windows 10 Core的Raspberry Pi 3显示出划掉的x的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆