iot

Android, communicate with mobile data while connected to wifi without internet access

泄露秘密 提交于 2020-08-03 02:49:12
问题 I have an automotive companion app that needs to communicate with both wifi and mobile data networks. My vehicle control unit provides a wifi network without internet access which exposes an API service that we can call from the app. In addition to this we need to communicate with another backend reachable from the internet using phone mobile data (3G/4G). I immediately noticed that some android phones, when connected to a wifi network without internet using android settings menu , show a

Android, communicate with mobile data while connected to wifi without internet access

我们两清 提交于 2020-08-03 02:46:22
问题 I have an automotive companion app that needs to communicate with both wifi and mobile data networks. My vehicle control unit provides a wifi network without internet access which exposes an API service that we can call from the app. In addition to this we need to communicate with another backend reachable from the internet using phone mobile data (3G/4G). I immediately noticed that some android phones, when connected to a wifi network without internet using android settings menu , show a

Android, communicate with mobile data while connected to wifi without internet access

那年仲夏 提交于 2020-08-03 02:43:22
问题 I have an automotive companion app that needs to communicate with both wifi and mobile data networks. My vehicle control unit provides a wifi network without internet access which exposes an API service that we can call from the app. In addition to this we need to communicate with another backend reachable from the internet using phone mobile data (3G/4G). I immediately noticed that some android phones, when connected to a wifi network without internet using android settings menu , show a

AWS IoT Connection error : Invalid “caCert” option supplied with aws-iot-device-sdk

我是研究僧i 提交于 2020-06-28 05:26:28
问题 I've provisioned a device in AWS with device Certificate which is signed by my CA. Also, I've registered my CA along with verificationCert in AWS previously. Now when I send the data, In the options, var awsIot = require('aws-iot-device-sdk'); var device = awsIot.device({ privateKey: '--BEGIN RSA PRIVATE KEY--', //private key of my device clientCert: '--BEGIN CERTIFICATE --', //cat deviceCertificate and registered CA caCert: '--BEGIN CERTIFICATE--', //Amazon root CA clientId: 'Thing01',

Why Primary key and Secondary key in Azure IoT hub?

徘徊边缘 提交于 2020-06-25 09:36:28
问题 When creating a shared access policy or registering a device in Azure IoT hub, there will be a Primary key and Secondary key pair generated. And I noticed I can connect a device to IoT hub using either Primary key or Secondary key. So, what's the purpose to have Primary/Secondary keys? How should I design the use of both keys? 回答1: The goal of primary and secondary key is two-fold. First of all it would allow you to keep using your service when you want to replace your key. Say you connect

Paho MQTT not connecting Android studio to the Mosquitto broker

吃可爱长大的小学妹 提交于 2020-06-23 13:20:12
问题 I hosted Mosquitto MQTT broker on Digital Ocean Cloud. Now, I am trying to connect it to the android studio. But it is not connecting to the MQTT broker. I have printed the throwable exception details so the error could be debugged.Please guide me on how this error could be solved. I tried with the following code. public class MainActivity extends AppCompatActivity { public MqttAndroidClient CLIENT; public MqttConnectOptions MQTT_CONNECTION_OPTIONS; @Override protected void onCreate(Bundle

Paho MQTT not connecting Android studio to the Mosquitto broker

99封情书 提交于 2020-06-23 13:20:11
问题 I hosted Mosquitto MQTT broker on Digital Ocean Cloud. Now, I am trying to connect it to the android studio. But it is not connecting to the MQTT broker. I have printed the throwable exception details so the error could be debugged.Please guide me on how this error could be solved. I tried with the following code. public class MainActivity extends AppCompatActivity { public MqttAndroidClient CLIENT; public MqttConnectOptions MQTT_CONNECTION_OPTIONS; @Override protected void onCreate(Bundle