How to send data from avr micro-controller to website - web-services

I want to build a device . There will be 2 switches in this device . One is labeled "Satisfied" and another is labeled "UNSATISFIED" . Based on this , two flag(0 or 1) will be send to a particular website .
How can I build this device with AVR micro-controller ? Can You please tell the name of module which is capable of sending data from AVR to website ?
I have searched a lot in INTERNET but have not got any useful resources . Can you please help me by providing any specific link ? I have done some project of AVR and I am novice in the world of micro-controller .
Thanks for co-operation .

Atmel has an Application Note for a Web Server.
AVR460: Embedded Web Server
It's probably over-kill for what you want to do.
Atmel sells a Web Server board for this Application Note.

Related

control a Qt/C++/QML GUI application running on a embedded device from a remote client application?

Scenario:
We have a Qt application(Qt 5.9.5,C++,QML,Ubuntu) running on a device (deals with telecommunications), which can also be viewed in a browser using webserver. All the operations done manually on the device have been visualized on the browser simultaneously.
Requirement: Now what we want to achieve is build a similar application(maybe web application) so that you execute it from a browser and simultaneously the application on the device should execute by itself. The device is just switched on initially. everything should be operated from the client application. What are the possible options?
We have started with Qt Remoteobjects to make a remote application but Qt version of device is older one when compared with Qt version of some functionalities in remote objects module. so using remote objects is not possible now.
Can Qt WebGL streaming helpful in this case?
Does QtWebchannel and websockets help by setting up communication with html/javascript application. Is it a possible solution?
Is virtual network computing (VNC) an option to think about in my scenario?
I have come across some concepts like Qt for WebAssembly, Web toolkit(Wt), Emscripten, Cutelyst web-framework, Qt for Automation - MQTT,OPC UA, KNX, CoAP . Do these really help at any point while developing a client application to control the QML GUI on a telecom. device?
Which of the options suits my scenario?
I have been following Qt's blogs about these related topics. Still not sure which method is suitable?
Sorry for a lengthy explanation. Kindly provide some suggestions.
Thank you.

Automated file transfer between two macs using an ethernet cable?

Quick background, I am an intern at a company assigned to a project that I have no experience with, and I need some help trying to figure out where to start.
The goal of the project is to transfer very large chunks of data from a database, to a PC and then to a Mac. I am trying to code the communication between the PC and the Mac (this has to be done in c++, I've heard Python is easier but I have to use c++). Some requirements are that the PC and Mac be directly connected via an ethernet cable, and neither computer will have access to internet. The data transfer needs to be automated, so whenever the PC detects that it has received a full dataset from the database, it transfers the data to the PC. I cannot use any third party software to do this.
So far, through the research I've done, I think I need to set up a TCP Server-Client network. I've been using the code here (http://cs.ecs.baylor.edu/~donahoo/practical/CSockets/practical/) as a guideline for socket coding. I am first trying to test this by sending files between two macs (I don't have access to a PC atm). Any guidelines as to where I go from here would be helpful. I have looked into setting up static IP addresses and such, but I get stuck from there.
I don't expect anyone to code this for me, I am just new to socket coding and this sort of project, so just looking for a nudge in the right direction. Thanks!
Before you start coding, keep in mind that to connect PC to Mac you may need a crossover cable.
Then do some reading on the wired ad-hoc networks. The last post in this discussion may help.
Finally, configure and mount shared volumes (using the stock software, no 3rd parties involved), and don't use the low-level socket interface.

Is it possible to do WebRTC browser to native (C, C++ or other)?

I have seen several examples of native to browser WebRTC applications, like for streaming video files stored on a server to one or more browsers, but is it possible to do the reverse ? I.e. streaming the webcam from the browser to a server, written in C, C++, Java or other ?
It is possible.
WebRTC is using open standards to stream content over the network. You can find all the details in the following RFCs:
http://tools.ietf.org/wg/rtcweb/
If you want to write your own native application that will receive (and even send) WebRTC media you can either get the WebRTC native code from here: http://www.webrtc.org/webrtc-native-code-package and build it into your solution or alternatively use one of the existing SDKs that can provide you this functionality (depending on which platform you want your native application to run on).
If you want to connect WebRTC to existing hardware like a SIP desk phone, you will need to have some sort of a gateway that will have one leg that will communicate with WebRTC on the browser and the other leg that will communicate with your SIP phone.
There are a lot of commercial solutions already out there, but eventually it all comes down to what your needs are.

web interface for C++ app on embedded Linux device

I'd like to implement a communication link between an Apache-hosted webpage and my custom C++ app running on a small Linux device such as a Raspberry Pi or a DD-Wrt.
There's a tutorial here for the Raspberry Pi that uses buttons on a webpage to control LEDs on GPIO pins. The example uses MySQL as a communication interface between the webpage and a script and the script has read/write access to GPIO. Although MySQL offers the advantage of mature/ubiquitous interfaces to Apache hosted webpages and to C++, it might slower and have a larger flash & RAM footprint than necessary.
In an attempt to find a communications link that is smaller/faster than MySQL, I have an example that uses Javascript that does XML-RPC to a C++ app. But, this post way back in 02-24-2012, implies that xmlrpc is obsolete and could be replaced by something more modern (JSON, REST) but the posts lacks details about these methodologies.
Another option considered is something like Wt or other embedded libraries, but it will have a learning curve and web developers aren't likely to be familiar with it.
My question is: what would be a good architecture to implement a web interface for a custom C++ app on a resource-constrained device like a Raspberry Pi or other embedded Linux device?
Assumptions:
Apache is prefered because it fits in memory and web developers are familiar with it.
Interface should be 'modern'
pages are simple text-only, about 10 pages, 90% of the data fields
are read-only and the other 10% are editable fields.
The webserver is on a private network with no more than 3 users. The qty of users is
enforced using security/login.
Embedded ARM platform that boots from SD
CGI (launching a process for each transaction) is assumed to be slower
than necessary. FastCGI might be OK.
Similar questions found that didn't answer my question:
- Language Choice for Web interface on embedded device
- Designing Web Interface for Embedded System
Oh god. Apache? Why would you want such an overkill monster on an embedded device? I would suggest using a smaller server and instead of using cgi use a rest api handler. A very lightweight setup is to use uhttpd with ubus plugin and then to write your system code in C and just expose it's functionality through json api on ubus. You can then completely separate your web interface from your system code and you can minimize strain on the embedded server by only serving static html which you turn into a dynamic application with javascript and ajax.
No interpreter, no cgi, just ajax and ubus backend.
I do that and more on my rPI using Nodejs with the express, Socket.io, Mongojs modules

How to send stream data via Bluetooth from an iPhone/iPod Touch to a Windows C++ application?

I need to develop an iPhone/iPod Touch application that creates a server to send some data stream (characters or bytes) to a Windows C++ application via Bluetooth. I'm thinking of creating a TCP connection, but don't know where to start.
What iPhone API should I use do to something like this? Does anyone knows some code examples that i can use to do this?
And in Windows, what should I use to support this kind of communication?
Thanks
Yes. From what it looks like you can use the PAN bluetooth profile (the same profile used for tethering) with everything except the original iPhone.
Here's an article doing bluetooth over iPhone/iPad using GameKit. The article notes that you would need at least 2 iPhone/iPad devices running iPhone OS 3.0, but I wouldn't take that as an impossibility to talk to any other bluetooth capable device.
Update
This forum indicates that the iPhone is only capable of headset pairing. It could be that the iPhone is "picky" about what you can pair it with.
"The iPhone only recognizes the "headset" profile. Another well thought out idea from Apple. No A2DP profiles, no OBEX."
-sapporobaby
Update 2
As jamone as indicated iPhone 3.0 supports A2DP. How nice is that?
Here's a table listing of iPhone/iPad bluetooth supported profiles
I'm pretty sure third-party developers don't have sufficient access to the Bluetooth stack to do this via published APIs (i.e. via an app you publish to the App Store).
Is using WiFi an option? That's what most developers seem to be using for client/server communications. If that's the case, see if you can distribute Apple's Bonjour runtime with your app. If you search the developer site for Bonjour, they have code samples (though probably no Windows examples).