Skip to content

sap.deviceInfo(callback) is throwing an error upon succesful connection #41

@dsomel21

Description

@dsomel21

Hey, I am have been battling with this tasks for the past 2 days. Assuming the particle is listening mode, everything is operating normally...

function connect() {
    var sap = new SoftAPSetup({ protocol: 'http' });
    sap.deviceInfo(function(err, data) {
        console.log(err) // "Failed to fetch" OR "Type error"
    })
}

See, the weird thing is, the particle DOES in fact connect to the WiFi and my iPhone connects BACK to my home router (everything is good so far) BUT, for some reason it is still giving me "Failed to fetch" error. Or the "Type error". I feel like the softap-setup still thinks that I am connected to the Proton.

Do you know anything about this? Do you have any suggestions for me. Is there a way that, when I am connected back to MY router... I can recieve something like a Status: 200 from the deviceInfo function?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions