iot-for-all / iotc-cpm-sample Goto Github PK
View Code? Open in Web Editor NEWA sample application written in React-Native to connect BLE(Bluetooth Low-Energy) devices to Azure IoT Central.
License: MIT License
A sample application written in React-Native to connect BLE(Bluetooth Low-Energy) devices to Azure IoT Central.
License: MIT License
@lucadruda is it possible to add a web app to this project, similar to android and Ios apps, web app will work only with simulated data, if possible how one can achieve that?
Hello, I am able to start the app ok and connect it to my IoT Central app. However, as soon as I pair a simulated BLE device the app will crash shortly after. Some of the initial telemetry is seen in IoTC. There are no obvious errors reported. I am using the Android platform. Any ideas how to debug the issue? Thanks.
Repo mentioned in the installation part don't exist. please update getting started page
https://github.com/iot-for-all/iotc-cpm-sample/tree/master/#installation
Fetching a fresh clone fail to build on Windows due to a dependency on
https://github.com/lucadruda/react-native-paho-mqtt.git
The steps I followed was:
git clone https://github.com/iot-for-all/iotc-cpm-sample.git
cd iotc-cpm-sample
yarn install
ERROR Message:
error Command failed.
Exit code: 128
Command: git
Arguments: ls-remote --tags --heads https://github.com/lucadruda/react-native-paho-mqtt.git
Directory: D:\d\iotc-cpm-sample
Output:
remote: Repository not found.
fatal: repository 'https://github.com/lucadruda/react-native-paho-mqtt.git/' not found
Triage:
The package.json has
"react-native-azure-iotcentral-client": "1.1.2",
I also tried to change it to:
"react-native-azure-iotcentral-client": "^1.1.6",
The NPM package-lock.json contains the following:
"react-native-azure-iotcentral-client": {
"version": "1.1.6",
"resolved": "https://registry.npmjs.org/react-native-azure-iotcentral-client/-/react-native-azure-iotcentral-client-1.1.6.tgz",
"integrity": "sha512-gtJxNKwASSB7XiWUNqt+JymjHuIFc2kU4gYScV9mmS/12OgRNRcdTglcTHaHh42lDLl8x0Aqy2KDXXimi2b66g==",
"requires": {
"crypto-js": "^3.3.0",
"react-native-get-random-values": "^1.4.0",
"react-native-paho-mqtt": "git+https://github.com/lucadruda/react-native-paho-mqtt.git",
"uuid": "^8.0.0"
},
"dependencies": {
"events": {
"version": "1.1.1",
"bundled": true
},
"react-native-paho-mqtt": {
"version": "0.1.1",
"from": "git+https://github.com/lucadruda/react-native-paho-mqtt.git",
"bundled": true,
"requires": {
"events": "^1.1.1"
}
},
"uuid": {
"version": "8.3.1",
"resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.1.tgz",
"integrity": "sha512-FOmRr+FmWEIG8uhZv6C2bTgEVXsHk08kE7mPlrBbEe+c3r9pjceVPgupIfNIhc4yx55H69OXANrUaSuu9eInKg=="
}
}
},
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.