I can see that DJI has a drone SDK for mobile apps (iOS/Android), but I would like to pilot the device from client-side JavaScript or desktop C#. Preferably some type of REST api that can be addressed by any language.
Does something like that exist? I don't see anything obvious on their website.
Did you find the DJI Onboard SDK?
It has sample programs for Qt, Linux, and STM32.
You could use the desktop app/web app to send commands to an MQTT server. You would then need to write a simple mobile app to connect to the MQTT server and subscribe to the command channel.
Then as commands come in via your various applications (desktop, web, etc) you translate the commands received from MQTT to the specific DJI SDK commands and send them to the UAV.
If you're looking to straight up control the drone without being connected to the RC controller or a mobile device, then the only option is the onboard SDK. If you are just looking for a way to run code on the drone directly, you would need to go through either the mobile SDK or onboard. There would be no way to do so without onboard or mobile sdk, you would need some device to communicate with your application and transfer those commands to the drone via onboard sdk or just write an android or ios application for the mobile sdk.
Just buy Blue stack emulator for Windows to simulate Android OS. Better option is to explore docker on Windows and spin some android docker container. It is free to host it in Azure also with database inside.
Related
I'm facing migrating my iOS Cordova based app to PWA. The primary issue is that it is using NFC scanner. I have started to wonder if there is any way to polyfill NFC web API on iOS / Safari? It seems that official support will not happend soon...
At the moment I'm thinking of creating some kind of "service" that would host native NFC API over some communication channel.
A bit more detailed:
Create an app/service that would be a proxy for native NFC API.
The app should receive scan requests send scan results over browser reachable interface (Sockets?).
At PWA side I think it could be nicely packed into NFC web API shape.
Native app would be required to install with my PWA. But can also be considered general proxy for PWA class apps.
I'm not familiar with iOS programming and architecture but it seems there are some basic flaws of this concept. So here are my questions to iOS devs :)
Is is possible to implement and run continually some kind of service like TCP / sockets server?
Do you have an idea which layer would be suitable to handle communication between NFC proxy and PWA?
Maybe you have some alternatives to proposed approach?
IT Man
I'm on a project cross-platform where the client wants a website, an iOS application and an android app. I chose cordova to realise it.
But I have one question, can I host my application like a classic website on a distant server ?
Maxime
While you might be able to reuse parts of your HTML, CSS and JavaScript for the website, Cordova apps run on physical devices like phones and tables and interact
(access device capabilities) with the underlining operating system like Android and iOS.
When you have an existing server-based web app, and you want it running in a Cordova app, you'll have to migrate it. Depending on what your application does you could use a thin Cordova client (think of it as a web browser embedded in a native app) that automatically redirects to your web site.
Link to officially supported platforms.
https://cordova.apache.org/docs/en/latest/guide/support/index.html
EDIT: the following is only for testing, not production
Cordova supports the browser platform.
By running cordova platform add browser you add it to your project and with cordova run browser you run your app in a browser. To run it in a specific port, you need to run cordova run browser -- --port=1234.
You can add, build and run the iOS and Android platforms in the same project.
Take a look here https://www.raymondcamden.com/2016/03/22/the-cordova-browser-platform/
I am developing App using Cordova and want to try using Azure App Service's Mobile App.
But from this official document
https://azure.microsoft.com/en-us/documentation/articles/app-service-mobile-dotnet-backend-xamarin-ios-get-started-preview/
it contains iOS/Xamerin/WinApp/Android but javascript example.
My questions are:
Does the javascript version of Azure Mobile App client exist?
Is the client SDK the same with Mobile Service javascript client?
Is there tutorial of Mobile App javascript client?
thanks a lot.
Currently, the Mobile Apps service is in preview and not all features have been implemented yet.
Yes, the client SDK is the same as with Mobile Services. If you download the HTML quickstart client from your Mobile App, you'll see that the html page references the same library: MobileServices.Web-2.0.0-beta.min.js
You didn't asked for the backend but anyways...Note that a major drawback currently for JS developers is the fact the you can't create a Node backend for Mobile Apps yet.
I have created a simple twilio client application to make phone calls from Web Browser to phones. I used a sample Flask app to generate a secure Capability Token and used twilio.min.js library to handle calls from my HTML.
The functionality works fine in Computer Browsers and Android Phone Browsers, but fails in IOS browsers(checked both in Safari and Chrome). In android the page asks for permission to use mic and headphone but in IOS it doesnot even as for that. Is there anything that I am missing here? It would be really helpful if someone can throw some light into this.
The doc I referred to was : Twilio Hello Monkey Client
Twilio developer evangelist here.
Twilio Client uses WebRTC and falls back to Flash in order to make web browsers into phones. Unfortunately Safari on iOS supports neither WebRTC nor Flash so Twilio Client cannot work within any browser on iOS.
It is possible to build an iOS application to use Twilio Client just not a web application.
I'm building a TV application using a framework called TAL (TV Application Layer), which is a Javascript framework for building an HTML5 based TV app.
I can run my application on localhost and test it in my browser. I can also test the app quite easily on the Amazon Fire TV using Amazon's Web App Tester tool, which accesses the web app running on my computer via my WiFi network and then runs it on the TV.
However, I'm struggling to find a general approach to test this app on other set top boxes or smart TVs.
Do I have to download the SDK for each individual device and package it up somehow? If so, what is the general approach for this?
The documentation from individual manufacturers only seems to focus on using their SDK to build the app, and doesn't offer support about an HTML5 app that you've created yourself.
As I'm just starting out on this, any pointers in the right direction would be much appreciated.
If the TV and your dev machine are on the same network you should find out the internal ip-address for your dev machine. On OS X and Linux you can type ifconfig in the terminal. Look for a line that looks like this:
inet addr:10.2.0.15 Bcast:10.2.0.255 Mask:255.255.255.0
The addr: part lists your ip address. In this case it would be 10.2.0.15.
If you type this ip address into the address bar of your smart tv browser you should be able to view your website on the Smart tv.
I'm not sure about actual apps for the TV, I do think it will be different for each brand and that you will have to package it up individually.