AWS IOT button Configuration - aws-iot

Recently we purchased AWS IOT 2nd Generation Button.we are trying to configure the button as per AWS documentation.
But our LED pattern is showing Short-Short-Short (blue-white-red(5 sec)) .We dont know why this is happened.
It is directly connected to the Modem.But it is not connecting as wifi enabled or Mobile hotspot.
Question:
1) How to diagonize the connectivity issue.
2) Is there any limitation on wifi Speed.
3) All our Wifi is Open wifi (but we should register in the common site)
What will be the problem on this?How to solve.

Answer 1. Press the button for more than 5 sec, you will see a blue light and then do the connections again.
2.There is no limitation on your wifi speed as such.
3. That should not be a problem. I myself have two buttons. Both works fine.
One suggestion, if you are using AWS console or the website and doing the connection manually (i.e. downloading and uploading the certificate manually, etc.), try their mobile app. It should work and it's easy to use. If you are using AWS IOT mobile app, try the web version.
It should work in both the cases. Hope this helps.

Related

p5js device orientation not working on my website

I'm trying to build mobile web applications using p5js, and I want to host them on my personal website. In particular I want to use the phone's gyroscope sensors to influence parts of my sketch. However I find that the sensors don't return anything useful when testing on my own site. Please can anyone find the solution, or else advise me how to troubleshoot?
Some details
My website is hosted on github pages (link to repo)
My phone is an Oppo A9 2020
Android version 11
I'm testing these websites in android chrome
Example 1:
I've got this sketch called GyroscopeTest. The program hosted on the p5.js web editor works just fine (the device orientation values are updated). However the same program hosted on my personal website doesn't update the values properly.
Hosted on p5.js web editor
Hosted on my website
Example 2:
This is a simpler example. Here's someone's example of using the gyroscope sensors on their website, which works fine on my mobile. I copied the html and javascript sketch over to my own website (removing a few lines of html that were causing minor problems). And on my website it doesn't work.
Hosted on someone's website
Hosted on my website
After more digging I found that the issue was because my website was served with http, not https, which has extra security stuff!
Clearly these other websites were served with https, which is why the sketches wored o nthose sites and no my own.
Because I had not enabled https, chrome deemed the website unsecure, and thus did not allow the website access to the phone's sensors. Changing the site to https also allowed other sketches to access the phone's camera.

Dev Tools Inspect Devices very unreliable

I'm currently going through the codelab Enable local fulfillment for smart home Actions. I managed to get (mostly) everything working.
But when I try to debug the typescript app Chrome using the Chrome Dev Tools (chrome://inspect/) I do sometimes see my Google Nest Mini to which the "local execution app" is deployed. But most of the times I do not. All my devices (Dev notebook and Google Nest Mini) are in the same IP subnet.
Any hints or ideas how to troubleshoot that?
The problem is solved. I cleared the list of " Target discovery settings", added the Google Nest Mini IP again and rebooted a few times. Since then it works always.

Unable to record mobile app steps using jmeter

I tried the following in order to record mobile app steps using jmeter:
Start Jmeter on the my laptop and add the necessary recording templates.
Copied and installed the Jmeter cert on the mobile phone.
Connected the mobile phone to the same wifi that my laptop (with Jmeter) is on.
In the proxy hostname, I added the ip address of my laptop (with Jmeter). I also add the same port that was configured in Jmeter for my laptop.
Clicked start on the HTTP(S) Recording controller to start recording.
NB. I ensured my firewall was off during the recording.
I tried these steps several times, but when I use my mobile app on my phone, nothing gets recorded. I then tried navigating to a site using the browser but it does not record these actions either. Instead, it records other steps that I don't recognise. Please see links below for what I am seeing in Jmeter.
Does anyone have a solution to this?
Recorded Steps
Errors Displayed
You're getting this error:
because JMeter is not capable of decrypting the intercepted traffic as you didn't install JMeter's MITM certificate onto your mobile device.
The certificate is called ApacheJMeterTemporaryRootCA.crt and it's being generated in "bin" folder of your JMeter installation when you start the HTTP(S) Test Script Recorder.
I cannot provide exact steps for the certificate installation without knowing the operating system (including version) of your mobile device, however you might find the following material helpful:
Five Tips for Using Self Signed SSL Certificates with iOS
Android: Add & remove certificates
Recording Using Android Devices
Using self-signed SSL in Android (Nougat+)
hey you have to "trust the jmeter certificate in your mobile device". in ios its "trusted certificates-->certificate trust setting--> enable button for jmeter certificate which you took from jmeter machine to the mobile (ios in my case)"

Monitor URLs accessed by mobile app

I have downloaded an Android app (which is also available for iPhone and ipad). I want to monitor which URLs it is accessing. On the desktop, you can use tools like Chrome dev tools for browser traffic and Charles Proxy (http://www.charlesproxy.com/) for other app traffic. Is there a similar way to set a proxy for the app from outside it, and then view any connection attempts, possibly with headers and responses?
I only need to do it once, to ensure the app isn't malicious, so the process doesn't have to be the most convenient method in the world. For example, it could involve setting up a proxy app on the desktop and then connecting through that, or running the Android or iOS version on a desktop-based simulator and monitoring that.
When searching SO, a lot is to be found on this topic. The best solution seems to be setting up a desktop to be an access point for the android device and run wireshark on it like suggested here
Capturing mobile phone traffic on wireshark
your best bet is charles proxy trial version
to set up charles proxy is like butter
1) Make sure both computer and device are on the same network
2) Download charles proxy on computer
3) On device go to wifi--> connection name--> hold on to it --> modify --> manual proxy --> give your ip address and port 8888
4) keep charles open on computer while you are doing this
5) you will get a pop up in charles regarding the connection and will start showing you the traffic being captured from the app..

Why does my WPF .NET4 app starts slow on PCs first time when I can only ping the internet

I have deployed a WPF .NET4 application on my customer's network.
The network can ping the internet, but the PCs are not able to browse.
It takes about 60 seconds to start the application.
TcpView shows that the app is trying to communicate with these URLs:
customer.teliacarrier.com
office365.com
msgr.dlservice.microsoft.com
akamaitechnologies
If we open the internet and starts the application once everything work fine and we can close the firewall again.
Does anyone know why the app communicates on the URLs the first time???
The customer has solved the problem.
The firewall was configures to allow ping to all external sites.
When they changed the rule to not allow ping everything worked fine.
I think that .NET 4 uses some signed files that the machine tries to authenticate.
If you used ClickOnce deployment or 3rd party components the app might be looking for updates.
All of the URLs (except for the office365.com) refer to download/mirror sites.
You could try to have a look at the requests that are being send to get more details.
If you have signed your files they may be trying to authenticate against a Certificate Authority. Also - make sure you ngen your wpf files before delivery - this speeds up the first launch of the file (Regardless of reaching out to websites). http://msdn.microsoft.com/en-us/library/6t9t5wcf(v=vs.80).aspx

Resources