I'm trying to develop an app to talk to redbear, bypassing the evothings studio. I'd like to load the required evothings libraries via a script tag and then initialize evothings{} once my jquery mobile app is running. I will then use buttons to scan()/connect() etc.
I pulled
app.js from https://github.com/evothings/evothings- ... chat(added logging, removed app.initialize())
easyble.js from https://github.com/evothings/evothings- ... gs/easyble
util.js from https://github.com/evothings/evothings- ... hings/util
and modified my html to load them. I then call app.onDeviceReady() on jqM init and firebug confirms that app{}, evothings{}, and window.ble exist.
now, invoking app.startScan() via pushbutton, I get 'type error: evothings.ble is undefined' when the script attempts to execute evothings.ble.startScan().
How and when is the evothings.ble object supposed to be defined?
please see my code: https://github.com/cordphelps/evothings-redbear
bypassing the studio?
-
- Posts: 2
- Joined: 17:56, 23 Apr 2015
Re: bypassing the studio?
Just want to add that there is a guide about how to build native apps with Cordova:
http://evothings.com/cordova-starter-kit/
Best, Micke
http://evothings.com/cordova-starter-kit/
Best, Micke
Return to “General discussion”
Who is online
Users browsing this forum: No registered users and 1 guest