Server-client for Qt Webassembly - qt

I am working on a robot project. I developed an interface using Qt and communicated between the device and the interface using tcp socket. I saw that Qt supports webassembly and I tried to move the project to the web via webassembly, but the tcp connection I have established does not work in this case. How should I proceed in such a situation?
I want to communicate the device with the qt application that works with webassembly

Related

How can i read messages from IoT devices in ASP.NET Core

Package WindowsAzure.ServiceBus 4.1.2 is not compatible with netcoreapp1.1
How can I connect my IoT Hub to my Web Application?
Or maybe there is the better way to collect data from devices and send commands to them not by using asp net core application.

Signalr broadcast from web api

What is the best practice to SignalR broadcast from webapi which is located in another project to mvc application when you install signalr package in the mvc application?
MVC - localhost:8080
API - localhost:8080/api (lives in a different project)
Hubs - Shared class library for Hubs
The problem is, if i install signalr package in MVC application, it doesnt work, but if i install it in API application, it then works.
Any ideas?
You don't need hubs to be shared, hubs are necessary (if you use the Hubs API) only to the broadcaster. You can remove their usage from the MVC project.
Moreover, you do not need the full SignalR package in both. The WebAPI will hardly have its own JS clients (they come from the MVC one), so it is enough to install just the SignalR .NET client library. Same reasoning on the MVC project, that is just a client from a SignalR perspective, so you just need to install the SignalR JS package. I'm assuming you are broadcasting from WebAPI project directly towards the MVC users in their browsers, however if you are trying to achieve a server-to-server broadcasting then you'll need the .NET client library there too, but still no need to share hubs.

serialport communication .net 4.0 from a webpage

Looking for serial port communication using ASP.NET 4.0. I have a cardwriter/reader from IDTECH which talks through a comport. Is there any way to accomplish with .net through the web.
I read things but most of the topics on speaking about .net 2.0 and I was not sure if they created something to handle this in .net 4.0
Thanks
Anything written for .net 2 should work in .net 4 with some changes that occur between revisions. However, using the serial port from asp.net will not work on most servers as the user that the asp.net process is using won't have permission to access the hardware.
The only way around this would be to build the portion of the process that talks with the card reader/writer as a Windows service and add some method of communicating to the service from your asp.net application (TCP connection or something similar).
The only way this is possible is via a browser plugin. This has nothing to do with .NET (unless that's what you use to write your browser plugin).
Everything you see about issues with the .NET serial port control are referring to desktop applications. As a side note, most of the issues have been resolved in .NET 4.0, but not all. I've given up and now use CommStudio, which is available as an ActiveX control, so you may be able to access its methods from a web page.

adobe AIR app and bluetooth

I want to build a adobe Air application that sends an image to a mobile phone via bluetooth.
Do you know of a framework or library to do that directly or indirectly? I mean using only flex or do I have to use another language also, such as java?
any hints are welcome
thanks in advance
thodoris
Hey Thodoris. You'll probably have to use merapi + a bluetooth api built on java.
I'm not sure if it is part of the community, but I heard recently that the framework has been ported to c#.
There are certainly other options as well. For example, there is a way to deploy weborb with your AIR install. Then, with the instance of a java or iis 'server' running client-side, you can invoke java or .net methods through a localhost "amfEndpoint".
I hope those couple of options help. Best of luck. --jeremy

Web Interface identical to Qt user interface

I'm working on a embedded system with a display. The user interface was developed using Qt.
How can I develop a web interface that looks identical to the existing Qt interface, and gives the same user experience on the web. The Qt GUI is accessing the device functionalities through an interface library.
Is there a way to generate web pages using the existing Qt GUI code?
Does any design approach exist that lets me re-use the existing Qt code?
QtWui would be one option. Be warned, though, that it's a very young project.
There was once an entry on the Qt Labs blog about a QWebClient which looked promising. The latest update to the git repository was in October 2009, however.
As alternatives, you could wait until both Google’s Native Client and the Qt port that will run on it are stabilised/finished. The Native Client aims at running system code sandboxed in a browser, so you could ‘simply’ port your Qt app to run on this.
There is a port in progress, compiling QT with Emscripten
http://www.phoronix.com/scan.php?page=news_item&px=MTI3NDc
http://vps2.etotheipiplusone.com:30176/redmine/projects/emscripten-qt/wiki/Demos

Resources