Making a direct API call from WearOS watch over WiFi without phone connectivity - wear-os

I am not Android/WearOS savvy so apologize in advance to those who are eager to push down arrow button.
I am looking to put together a proof of concept that would read sensor data from Android/WearOS watch and send it to an Azure API EndPoint over WiFi without needing or intervention of phone. As we understand that latest WearOS devices can directly connect to WiFi.
First of all can WearOS watch make a direct api call over WiFi? If not then please advise!
If so has anyone done similar work or point me in the right direction. Please share sample code or how to tutorial.
Many thanks.

Have you looked at the official documentation page for this? https://developer.android.com/training/wearables/data-layer/network-access
It has a step-by-step walkthrough of the process of network communication from Wear OS, as well as sample code.

Related

Send data from Droidscript to ESP32

I am trying to create an android app using Droidscript in order to send some data to an ESP32.
Searching on the web I found several ways to do it but all of them are quite complicated.
Can anyone help me how to continue from now on ???
Thanks a lot !!

Which ibeacon used for alerting mobile application from wallet(smart wallet)?

First of all, i am trying to find out how the smart wallets works. I am trying to figure out how its works. Basically i need below features :
1.) If someone put out ibeacon from wallet user get notify.
2.) If i tap on wallet user can get call on its mobile application.
As from research i found out this amazing smart wallet mywalli and its seems that my requirements are matching very nearly to it. So, i want suggestions that which ibeacon i can use for this as it cover all features as i mentioned above. Your any suggestion are very valuable for me as i am very new in thin ibeacon filed.

How to test the amazon alexa custom skill through your computer while in development phase?

I am trying to use the sample code provided for Amazon Alexa API, and trying to run hello world / history buff examples through the computer. How do I test from my local machine, about the request and response formats. In the README file it is given to visit this website : http://echo.amazon.com/#skills, but I could see nothing there as it mentions more about connecting to the device. I dont have the device, but I would like to test things locally through my laptop.
We have a tool that we built specifically for this purpose:
https://bespoken.tools/blog/2016/08/24/introducing-bst-proxy-for-alexa-skill-development
Requests and responses from Alexa will be sent directly to your development laptop, so that you can quickly code and debug without having to do any deployments. We have found this to be very useful for our own development.
Our Github project is here:
https://github.com/bespoken/bst
We are also adding other useful commands for Alexa development.
Yes, the Test tab in the Alexa Developer Console allows you to interact completely with your skill during development.
You will type in your utterances instead of speaking them, but from a program logic perspective, there is no difference.
The Test page also provides a place to type in your skill's reponses, to see what they'll actually sound like. I recommend that you do so if you don't have an actual device. Sometimes adding or removing a comment can help make the responses easier to understand, or sound more natural.
Use http://ngrok.com
See my video for a tutorial:
https://youtu.be/eC2zi4WIFX0?t=108
I'm guessing the key point in OP's question is "dont have the device".
There is a web simulator at https://echosim.io
It behaves just like any other Alexa 'device'. Login with your Amazon account and it picks up all your selected skills, etc. Shows up as just another device in the Alexa app.
Only downsides: You have to click to talk, and it's pretty slow, presumably because it has to receive, buffer, convert and re-ship the audio.
Also, I'm not sure how you register/connect to the Alexa service in the first place without an Echo/Dot device, but I assume there is a way.
UPDATE:
More recently, there are a number of free 3rd-party apps on Android and iOS devices to also simulate an Alexa/Echo device. It can be less klunky than the web site. Search for 'Alexa' in your App/Play store and try a few of them out. "Reverb" is one: https://itunes.apple.com/us/app/reverb-for-amazon-alexa/id1144695621
Good luck.
I dont have the device, but I would like to test things locally
through my laptop.
If you are developing the skill using an AWS Lambda function in Python, have a look at: https://pypi.python.org/pypi/FirstAlexaSkills/0.1.2
It can generate custom Alexa events based on your parameters (utterances, slot variables) and allows you to create test cases against your local code, as well as against AWS Lambda itself.
You can also test your skill locally by following this tutorial:
How to test your Alexa skill locally

Information about Network Discovery API's

I'm quite new to windows sdk programming and i'm trying to write a code to discover devices on the network. The code should be able to get the name of the device(hostname) and ipadress of the device. Are there any predefinded Api's to do the same. I googled and got certain api's such as
WNetGetNetworkInformation
WNetGetResourceInformation
which didn't seem to serve the purpose.
Take a look at this SO Article -- from today!
It shows how you can retrieve all information for a network adapter.

How to retrive email from MS Exchange server on Android

I’ve been googling for a couple of days now! I’m looking at a way of integrating simple mail functions into my android app. A few people have suggested looking at K9 which I have done. This is obviously a fully featured mail client and has far more functionality than I need. I wanted to know whether there was a way using Android API's to connect and retrieve mail?
Any responses greatly appreciated!
There are third party API called JWebServices / JWebDAV . As far as I know they both working on Android
Not really, afaik are no Android APIs you can use for this purpose. You could use the ActiveSync protocol to connect to the Exchange server and pull down the email messages you need.

Resources