Configuring Spark Core on a closed Wi-Fi network

There are a few ways, we announce changes and updates both here on the forum, and on our blog ( http://blog.spark.io/ ) at the end of the sprints, and you can always check the network graph on github to see what the status of that branch is and what fixes are included: https://github.com/spark/core-firmware/network

Thanks!
David

Hello again @Dave!

I have recently set up local compilation of the Spark Core firmware on ubuntu. I am currently trying to use the new ā€œspark_disable_cloud.hā€ class and encountered a problem. Iā€™m guessing that I might have some dependency missing but I canā€™t figure it out.

When I perform a make operation in the core-firmware/build folder I receive the following complication error:

Do you have any idea what might be causing this error?

Thanks once again for all the help.

Tim

Try adding #include ā€œapplication.hā€

1 Like

I just figured it out, thanks @kennethlimcp !

I had included ā€œspark_disable_cloudā€ the line before i included ā€œapplication.hā€ so they were in the wrong order. Thatā€™s why the dependency issue was occuring.

2 Likes

Glad you guys got it working! :slight_smile:

Hi all !
I want to use my Spark Core on a closed WiFi network, as described on this post, but with the new function calls that have been recently added to the core formware
Iā€™m facing a lot of problems, described there (with my code posted in GitHub) : http://community.spark.io/t/new-feature-control-your-connection/6282/54
Does anybody have an idea why these problems arrised in my situation ?
Thanks in advance !
Mil

Hi @Mil,

Itā€™s not clear to me what issues youā€™re seeing. Are you trying to use Spark.Connect on a closed Wi-Fi network?

In the code you posted, youā€™re using Spark.connect, which will try to open a connection to the cloud via the internet:

Thanks,
David

Hi @Dave,
Thanks for the answer !

I actually have 2 separate problems :

  • I want to use my Spark Core locally, on a closed wifi network (i.e. without the call to Spark.connect(), i.e. without connecting to the cloud. By keeping only the calls to WiFi.on() and WiFi.connect() ) but itā€™s not working. Iā€™m unable to communicate with the core
  • Then I wanted to test the SEMI_AUTOMATIC mode independently from my need to use my core locally, because my problems could come either from the local communication or from the SEMI_AUTOMATIC mode that I was using for the 1st time. And when I explicitly call Spark.connect() in SEMI_AUTOMATIC mode, trying to connect on my usual internet connection at home (as I did in my code on github) it is not working either (if I remove the call to Spark.connect(), and go back to AUTOMATIC mode, itā€™s working like a charm)

So, in the end, both my setup (local communication) and my tests with the SEMI_AUTOMATIC mode (even if I try to connect to the cloud) do not work
Hope itā€™s clearer, and sorry for the few details provided in the original message
Best,
Mil