I have a Photon, it’s easy to program and publish data to the Particle Cloud. However…
My requirement is to read this data from a Windows 7 machine (the development environment is VB in Visual Studio 15 Community). I’m fairly sure that the Particle Windows SDK will not work in this environment. So please please how do I accomplish this?
Why do you assume the Windows SDK won’t work? It’s a Portable DLL that works in C# and VB. As long as you are using .NET 4.5.2, it should work just fine (it’s supported on Windows 7 SP1).
1 Like
Yep using .NET 4.5.2
OK, using the following code as a test:
Imports Particle.SDK
Public Class Form1
Private Async Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Label1.Text = "Waiting"
LogIn()
End Sub
Private Async Sub LogIn()
Dim success As Boolean = Await ParticleCloud.SharedCloud.LoginAsync("xxxxx@xxxx.com", "xxxxxxxxx")
If success Then
Label1.Text = "Logged on"
Else
Label1.Text = "Can't log on"
End If
End Sub
End Class
I get the following run time exception on the ParticleCloud.SharedCloud.LoginAsync
function
InnerException:
HResult=-2146233031
Message=Operation is not supported on this platform.
Now I could be/probably doing something wrong.
Okay, let me look into this.
Just bumping this up to see if anyone else can help. Thanks