是否可以控制运行.NetCore应用程序的RPi GPIO [英] Is it possable to control the RPi GPIOs running a .NetCore App

查看:85
本文介绍了是否可以控制运行.NetCore应用程序的RPi GPIO的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的要求对我来说似乎很简单,但使用Win Iot开始显得不可能。

My requirement seem pretty simple to me but are starting to appear impossible using Win Iot.

在RPi上运行一个可以控制输出的自托管Asp.Net网页读取输入。

Run a self hosted Asp.Net web page on the RPi that can control outputs and read inputs.

到目前为止,我发现托管网页的唯一方法是.NetCoreApp - 工作正常。

So far the only way I have found to host the web page is as a .NetCoreApp - works fine.

同样,到目前为止,看起来唯一的方法是通过UWP应用程序读取或写入GPIO - 一切都很好。

Again, so far it seems the only way to read or write to the GPIOs is via a UWP app - all good.

问题在于UWP设计被阻止与同一设备上的其他应用程序通信。

The problem is that UWP by design is blocked from communicating with other app on the same device.

像许多其他人一样,我花了数年时间学习C#和.Net,  但经过几天的研究,它开始看起来像我能用我的微软定位技能实现我想要的唯一方法我花了很多时间学习废弃Win Iot和
使用工具在Raspbian下完成整个事情像Mono和OWIN。

Like many others I've spent years learning C# and .Net,  but after days of researching this it is starting to look like the only way I can achieve what I want using the Microsoft orientate skill I spent so much time learning is to scrap Win Iot and do the whole thing under Raspbian using tools like Mono and OWIN.

对我来说,我必须使用Linux操作系统来获得我想要使用的微软技术,这听起来完全荒谬。

It sounds totally ludicrous to me that I would have to use a Linux operating system to get the Microsoft tech I want to use to work.

有人可以告诉我,我错过了一些事情而且事实并非如此。

Can someone please tell me I've missed something and that this is not true.

推荐答案

嗨motu,

我请物联网小组成员审核你的帖子,并提出以下建议:你:

I asked a member of the IoT Team to review your post and have the following suggestion for you:

在UWP中,他们使用App Services进行通信

h ttps://docs.microsoft.com/en-us/windows/uwp/launch-resume/how-to-create-and-consume-an-app-service

此致,

IoTGirl


这篇关于是否可以控制运行.NetCore应用程序的RPi GPIO的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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