User Tools

Site Tools


HOWTO: Set up and secure a local Spark-Core Cloud

It took quite a bit of tinkering and a couple of clarifying sessions on IRC (Thanks to lbt and aholler for their input and support), to deploy the local Spark-Cloud test setup and interpret/abstract the scattered docs into one whole system view model. But why go through all this hassle, when you can just comfortably use the “official” spark.io cloud service to develop & manage your cores instantly?

Well, the IoT (Internet of Things) is a hip buzzword these days and the Spark-Cores definitely can be categorized as the first generation of open, relatively cheap and hackable wireless IoT devices.

For all we know, it is at least save to assume, that we actually have no way of knowing how far this technology branch is going to develop and spread in a couple of years, just like the Internet itself 20 years ago. We should look at the privacy aspects before it's actually too late to do so. In the end, it boils down to this question:

Do we really want to give out our complete sensory data (sys/env/biometrics) over all time and possibly full remote control over all the actors, built into everything, at all time, at the place we like to call our home?

Some people may haven't yet realized that we've got plenty of open-source tools to store, analyze, link and visualize billions of data rows quickly and with much ease. Imagine what people with a multi-billion budget are able to employ. To give you a small scale example, how transparent anyone's little life and habits become, I've created a dashboard which doesn't show many metrics yet (more are in the process) but it's more than enough, if you learn how to interpret the graphs. The data you see there is mostly generated by two spark-cores which are deployed here. Big/Open-Data/Cloud technology is not the problem itself, it's our culture/society, which obviously isn't ready for it.

In the year 2014, in a post Olympic Games (Stuxnet) & Nitro Zeus, Snowden & Lavabit era, we have no other choice but to come out of our state of denial and simply accept the fact, that every commercial entity can be compromised through multiple legal, administrative, monetary, social/personal or technological levers. Access- and Cloud-Provider are no exception. As repeatedly shown, all of them can be tricked, coerced or forced to “assist” in one way or another. No matter what anyone promises, from this point on, they all have to be considered compromised.

The current software implementation (firmware- and server-side) has no concept of mesh/p2p or direct networking/communication. All Spark-Cores need a centralized spark-server for Control & Communication. Also, the Spark.connect() routine unfortunately has no timeout (yet?), the Core might hang indefinitely, which could be a big problem, even if your particular code doesn't require to connect to the cloud because after you call Spark.connect(), your loop will not be called again until the Core finishes connecting to the Cloud. This might happen if your WiFI or internet access is offline.

In this picture the blue lines represent the data flow of the Cores, the clients and the central server. All points marked with a red C show where the current implementation/infrastructure is to be considered compromised and the yellow P marks potential security risks (since the firmware isn't compiled locally), theoretically anything can be injected into the firmware, either in the AWS cloud or even in-stream. Tests showed that the API webservers don't offer perfect forward secrecy, the cores itself use only 128-CBC without DH support, which offers no forward secrecy at all. Not having reliable crypto and passing everything through compromised infrastructure can't be the way to go. Not to mention, the additional amount of required bandwidth this concept ultimately creates, when you consider the available IPv6 address space and a fair likelihood, that not so far off, there will be more IoT clients connected to the Internet, than there are humans.

Local Spark-Cloud Server Dataflow

When you follow this howto and secure your network access with a strong VPN (AirVPN used here) you'll end up with something that looks like this image, where we effectively mitigate all these issues and take back control of our privacy & autonomy. At least we now can decide if and which data we want to share and publish.

Key Features/Aspect Comparison

Remote Spark-Cloud (AWS) Local Spark-Cloud Server
Easy start with WebIDE Yes Manual setup required
Offline Development with Atom and git No (Use WebIDE) Yes
Number of exposable functions 4 unlimited1)
Number of exposable variables 10 unlimited2)
Local Cross-Compiler Toolchain needed No Yes
Cores still work when Internet is offline No3) Yes
Perfect Privacy/Forward Secrecy No4) Yes5)
Core Firmware can be trusted Potentially Not Yes
OTA Update capability Yes (But potentially insecure) Yes
Minimum Avg. Non-US Network Latency >100ms <10ms (LAN/WiFI)

Installation

Dependencies

dfu-util

To claim, configure and flash our Cores locally we'll need dfu-util >= 0.7.0

$ emerge -av dfu-util

In this guide I've used the 9999 gentoo ebuild, which pulls and builds the current git master, on other distros your mileage may vary.

Node.js

$ emerge -av nodejs

Make sure the npm USE flag is set to get the node package manager as well

Cross Compiler Toolchain

At this time is wasn't possible yet to use a gentoo crossdev toolchain to compile the firmware since it seems to require newlib-nano instead of the plain newlib gentoo would like to merge. There wasn't enough time to hunt down this particular bug further so the official toolchain was used instead.

$ mkdir spark-core
$ cd spark-core
$ wget https://launchpad.net/gcc-arm-embedded/4.8/4.8-2014-q2-update/+download/gcc-arm-none-eabi-4_8-2014q2-20140609-linux.tar.bz2
$ tar xvjpf gcc-arm-none-eabi-4_8-2014q2-20140609-linux.tar.bz2

Tell your system to pick it up automatically:

$ export PATH=$PATH:$HOME/src/spark-core/gcc-arm-none-eabi-4_8-2014q2/bin

Core/Firmware

$ git clone https://github.com/spark/core-firmware.git
$ git clone https://github.com/spark/core-common-lib.git
$ git clone https://github.com/spark/core-communication-lib.git

Make sure you checkout the three core repos into the same folder, otherwise it won't build.

Spark Server

$ git clone https://github.com/spark/spark-server.git

Spark CLI

$ npm install -g spark-cli (need either root or sudo)

Configuration & Usage

Local Spark cloud server

$ cd spark-server/js
$ npm install
$ node main.js

-------
No users exist, you should create some users!
-------
connect.multipart() will be removed in connect 3.0
visit https://github.com/senchalabs/connect/wiki/Connect-3.0 for alternatives
connect.limit() will be removed in connect 3.0
Starting server, listening on 8080
static class init!
core keys directory didn't exist, creating... /home/chrono/src/spark-core/spark-server/js/core_keys
Creating NEW server key
Loading server key from default_key.pem
set server key
server public key is:  
-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2UuRHTMfftLH/w814i9x
5H3dFElK4J4Zp3SkF3Ere3pS/DVBJUG1MAirv6jfGP3knmWORR9hWEdjqJNGwAms
SESv5Ztt6zxlB4vbmzkK914bj/d8UuBjEFczfOh5YX65lQUdKm5arxjGza9I8tN+
i+mdy/bNg3go9V1NflWNm0LQswwtBeVP0kdo/YOh8GJS7VZXyPIgDB/SrmgXfdvE
crAaE/0LiaI6/sOrMn7INirGJaHfkzSNs1yBZ0ZTci9HbFH0A/prwG5H5qmUVARa
5eQ2T/Zk8I+QuBzjaqTqNLn+rOmbTDWT0pQCdIHJMURcKRDE54ChZeAMw3Sft5jO
nQIDAQAB
-----END PUBLIC KEY-----

Your server IP address is: 192.168.1.100
server started { host: 'localhost', port: 5683 }

Spark-CLI Configuration

Spark-CLI usually wants to connect to the official Spark cloud, so we need to tell it where to connect instead. Since our spark-server told us it is listening on 192.168.1.100 we just say:

$ spark config local api-url http://192.168.1.100:8080
$ spark config local

This will create/update the spark-cli configuration found in ~/.spark/ reflecting our wish to use the local cloud instance running on 192.168.1.100 instead of the public one. At the point of writing these features are not yet documented but this commit worked here.

Prepare a new Spark-Core

Let's leave the server running in this shell and open another terminal to configure the core. Now it's also a good time to connect your Micro-USB cable to the Spark-Core.

Update factory firmware & CC3000 code

If this is a new Spark-Core, we want to run a special firmware program (deep-update), that will update the firmware running inside the CC3000 WiFi module. Put your Spark-Core in DFU-Mode by simultaneously pressing the MODE and RESET buttons, then releasing RESET while continuing to hold MODE for at least 3 seconds until the LED starts blinking (3-4Hz) yellow (red+green).

$ spark flash --usb deep_update_2014_06
FOUND DFU DEVICE 1d50:607f
checking file  /usr/lib64/node_modules/spark-cli/binaries/deep_update_2014_06.bin
spawning dfu-util -d 1d50:607f -a 0 -i 0 -s 0x08005000:leave -D /usr/lib64/node_modules/spark-cli/binaries/deep_update_2014_06.bin
dfu-util 0.7

[...]

Filter on vendor = 0x1d50 product = 0x607f
Opening DFU capable USB device... ID 1d50:607f
Run-time device DFU version 011a
Found DFU: [1d50:607f] devnum=0, cfg=1, intf=0, alt=0, name="@Internal Flash  /0x08000000/20*001Ka,108*001Kg"
Claiming USB DFU Interface...
Setting Alternate Setting #0 ...
Determining device status: state = dfuERROR, status = 10
dfuERROR, clearing status
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 1024
No valid DFU suffix signature
Warning: File has no DFU suffix
DfuSe interface name: "Internal Flash  "
Downloading to address = 0x08005000, size = 93636
............................................................................................
File downloaded successfully
Transitioning to dfuMANIFEST state
Error during download get_status
Flashed!

Don't worry about the “Error during download get_status”, apparently this is “normal” and doesn't mean the flash process failed. When the LED is blinking (3-4Hz) green, put it into DFU-Mode again and flash a regular firmware like Tinker to get connected and developing again.

$ spark flash --usb tinker

ID your Core

Put your Spark-Core into Listening-Mode by pressing and holding the MODE button until the LED is blinking (2Hz) blue. Now run the following command to get your Core's ID:

$ spark identify
Your core id is: 1234567890abcdef

Note/copy this ID, you'll need it soon again.

Upload local Spark-Cloud's pub-key to Spark-Core

Now that we've got the Spark-CLI ready, we can supply our Spark-Core with the public key of our freshly deployed spark-server. This actually is a good practice against DNS hijacking or other man-in-the-middle type attacks because our Spark-Cores can now determine that they are communicating with our server and not someone else's. It would be good to have some of the more stack/sec oriented people looking deeper into the code.

$ cd spark-core/spark-server/js
$ ls -al default*
-rw-r--r-- 1 chrono users 1679 Sep 25 11:27 default_key.pem
-rw-r--r-- 1 chrono users  451 Sep 25 11:27 default_key.pub.pem

Put the Spark-Core into DFU mode again and then execute:

$ spark keys server default_key.pub.pem 192.168.1.100
Creating DER format file
running openssl rsa -in  default_key.pub.pem -pubin -pubout -outform DER -out default_key.pub.der
checking file  default_key.pub192_168_1_100.der
spawning dfu-util -d 1d50:607f -a 1 -i 0 -s 0x00001000 -D default_key.pub192_168_1_100.der
dfu-util 0.7

[...]

Filter on vendor = 0x1d50 product = 0x607f
Opening DFU capable USB device... ID 1d50:607f
Run-time device DFU version 011a
Found DFU: [1d50:607f] devnum=0, cfg=1, intf=0, alt=1, name="@SPI Flash : SST25x/0x00000000/512*04Kg"
Claiming USB DFU Interface...
Setting Alternate Setting #1 ...
Determining device status: state = dfuERROR, status = 10
dfuERROR, clearing status
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 1024
No valid DFU suffix signature
Warning: File has no DFU suffix
DfuSe interface name: "SPI Flash : SST25x"
Downloading to address = 0x00001000, size = 1024
.
File downloaded successfully
Okay!  New keys in place, your core will not restart.

Create new keys for your core

Put the Spark-Core into DFU mode again and then execute:

$ mkdir core_keys
$ cd core_keys
$ spark keys doctor 1234567890abcdef
FOUND DFU DEVICE 1d50:607f
running openssl genrsa -out 1234567890abcdef_new.pem 1024
running openssl rsa -in 1234567890abcdef_new.pem -pubout -out 1234567890abcdef_new.pub.pem
running openssl rsa -in 1234567890abcdef_new.pem -outform DER -out 1234567890abcdef_new.der
New Key Created!
FOUND DFU DEVICE 1d50:607f
FOUND DFU DEVICE 1d50:607f
running dfu-util -d 1d50:607f -a 1 -s 0x00002000:1024 -U pre_1234567890abcdef_new.der
running openssl rsa -in pre_1234567890abcdef_new.der -inform DER -pubout -out pre_1234567890abcdef_new.pub.pem
Saved!
checking file  1234567890abcdef_new.der
spawning dfu-util -d 1d50:607f -a 1 -i 0 -s 0x00002000:leave -D 1234567890abcdef_new.der
dfu-util 0.7

Copyright 2005-2008 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2012 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to dfu-util@lists.gnumonks.org

Filter on vendor = 0x1d50 product = 0x607f
Opening DFU capable USB device... ID 1d50:607f
Run-time device DFU version 011a
Found DFU: [1d50:607f] devnum=0, cfg=1, intf=0, alt=1, name="@SPI Flash : SST25x/0x00000000/512*04Kg"
Claiming USB DFU Interface...
Setting Alternate Setting #1 ...
Determining device status: state = dfuUPLOAD-IDLE, status = 0
aborting previous incomplete transfer
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 1024
No valid DFU suffix signature
Warning: File has no DFU suffix
DfuSe interface name: "SPI Flash : SST25x"
Downloading to address = 0x00002000, size = 610
.
File downloaded successfully
Transitioning to dfuMANIFEST state
Error during download get_status
Saved!
attempting to add a new public key for core 1234567890abcdef
submitting public key succeeded!
Okay!  New keys in place, your core should restart.

Claim the Spark-Core

Press RESET on the core and/or hold the MODE button until the core goes back to listening mode (blinking blue). In order to create a new user and claim your first core we simply run:

$ spark setup
 
If you run this the first time, you'll have to create an
account in your local cloud first:

========================================
Setup your account

Could I please have an email address?  myemail@domain.net
and a password?  *******

Trying to login...
Login failed, Lets create a new account!
confirm password  *******
creating user:  myemail@domain.net
user creation succeeded!
Got an access token! 7yxc7yxc7yxc7yxc7yxc7yxc7yxc7yxc7yxc
Logged in!  Saving access token: 7yxc7yxc7yxc7yxc7yxc7yxc7yxc7yxc7yxc
Using the setting "access_token" instead 

Now that we have created a user and are logged in (got an access token)
we can claim our core:

----------------------
Finding your core id

Your core id is: 1234567890abcdef

========================================
Setup your wifi

SSID: mySSID
Security 0=unsecured, 1=WEP, 2=WPA, 3=WPA2: 3   
Wifi Password: myWifiPSK
Attempting to configure wifi on /dev/ttyACM0
I said: w
Serial said: SSID: 
I said: mySSID

Serial said: mySSID
Security 0=unsecured, 1=WEP, 2=WPA, 3=WPA2: 
I said: 3

Serial said: 3
Password: 
I said: myWifiPSK

Serial said: myWifiPSK
Thanks! Wait about 7 seconds while I save those credentials...

Awesome. Now we'll connect!

If you see a pulsing cyan light, your Spark Core
has connected to the Cloud and is ready to go!

If your LED flashes red or you encounter any other problems,
visit https://www.spark.io/support to debug.

    Spark <3 you!

Done!  Your core should now restart.

Please wait until your core is breathing cyan and then press ENTER

The Led should now slowly pulsate in cyan (blue+green) and your spark-server should show something in the console like:

 Connection from: 192.168.1.123, connId: 1
on ready { coreID: '123456789abcdef',
  ip: '192.168.1.123',
  product_id: 0,
  firmware_version: 10,
  cache_key: '_0' }
Core online!

Check/List cores

$ spark list
Checking with the cloud...
Retrieving cores... (this might take a few seconds)
tinkertest (123456789abcdef) is online
  Functions:
    int digitalread(String args) 
    int digitalwrite(String args) 
    int analogread(String args) 
    int analogwrite(String args) 

Compile firmware

Default Firmware

$ cd core-firmware/build
$ make clean all
Building core-common-lib
make[1]: Nothing to be done for `all'.

Building core-communication-lib
make[1]: Nothing to be done for `all'.

Building target: core-firmware.elf
Invoking: ARM GCC C++ Linker
mkdir -p ./
arm-none-eabi-g++ -g3 -gdwarf-2 -Os -mcpu=cortex-m3 -mthumb  -I../inc -I../libraries/Serial2 -I../../core-common-lib/CMSIS/Include -I../../core-common-lib/CMSIS/Device/ST/STM32F10x/Include -I../../core-common-lib/STM32F10x_StdPeriph_Driver/inc -I../../core-common-lib/STM32_USB-FS-Device_Driver/inc -I../../core-common-lib/CC3000_Host_Driver -I../../core-common-lib/SPARK_Firmware_Driver/inc -I../../core-common-lib/SPARK_Services/inc -I../../core-communication-lib/lib/tropicssl/include -I../../core-communication-lib/src -I. -ffunction-sections -Wall -fmessage-length=0 -Werror=deprecated-declarations -MD -MP -MF core-firmware.elf.d -DUSE_STDPERIPH_DRIVER -DSTM32F10X_MD -DDFU_BUILD_ENABLE -DSPARK=1 -DRELEASE_BUILD  ./obj/src/spark_wiring_random.o ./obj/src/spark_wiring_tcpserver.o ./obj/src/application.o ./obj/src/spark_wiring_i2c.o ./obj/src/spark_wiring_usartserial.o ./obj/src/spark_wiring_interrupts.o ./obj/src/spark_wiring_usbserial.o ./obj/src/spark_wiring_ipaddress.o ./obj/src/usb_endp.o ./obj/src/usb_prop.o ./obj/src/spark_wiring_stream.o ./obj/src/spark_wiring.o ./obj/src/spark_wiring_print.o ./obj/src/stm32_it.o ./obj/src/spark_wiring_string.o ./obj/src/main.o ./obj/src/spark_wiring_wifi.o ./obj/src/spark_wiring_eeprom.o ./obj/src/spark_wiring_tone.o ./obj/src/usb_desc.o ./obj/src/newlib_stubs.o ./obj/src/wifi_credentials_reader.o ./obj/src/spark_wiring_udp.o ./obj/src/spark_wiring_time.o ./obj/src/spark_utilities.o ./obj/src/spark_wiring_tcpclient.o ./obj/src/spark_wlan.o ./obj/src/usb_istr.o ./obj/src/spark_wiring_spi.o ./obj/src/spark_wiring_servo.o ./obj/src/startup/startup_stm32f10x_md.o --output core-firmware.elf -T../linker/linker_stm32f10x_md_dfu.ld -nostartfiles -Xlinker --gc-sections  -L../../core-common-lib/build -lcore-common-lib -L../../core-communication-lib/build -lcore-communication-lib -Wl,-Map,core-firmware.map --specs=nano.specs -lc -lnosys -u _printf_float

Invoking: ARM GNU Create Flash Image
arm-none-eabi-objcopy -O binary core-firmware.elf core-firmware.bin

Invoking: ARM GNU Create Flash Image
arm-none-eabi-objcopy -O ihex core-firmware.elf core-firmware.hex

Invoking: ARM GNU Print Size
arm-none-eabi-size --format=berkeley core-firmware.elf
   text	   data	    bss	    dec	    hex	filename
  78672	   1224	  11864	  91760	  16670	core-firmware.elf

How do I create my own firmware?

Basically you can just go into core-firmware/applications and create a new folder with your project there. The Makefile looks for application.cpp in this folder. However, I found this a bit cumbersome and didn't want my code to be in the firmware's git repo, so I decided to put my spark projects into my main spark-core folder. Since I use atom as an editor I find it convenient to directly build the firmware from within the editor's UI without having to switch into a terminal window to build. This just calls a build shell script, which links the code into the core-firmware/applications folder, sets some env vars and calls the build with make APP=$projectname parameter. Automatic OTA update is also just a oneliner more in the same script. An example of this hackish construct is available under: https://github.com/apollo-ng/spark-lighter

OTA firmware update

It's possible to update the cores via Wifi, also called OTA (Over the Air) update. This is a really lovely feature, since we don't have to run around and deploy new firmware locally via USB but can just push new firmware to any ID we designate. I have this oneliner directly in my build script, so when I build directly in atom editor, it compiles the firmware and automatically pushes an OTA-Update to the designated core. If there were more core's with the same firmware, it should be easy enough to auto-update more than one.

$ spark flash 1234567890abcdef tinker
Including:
/usr/lib64/node_modules/spark-cli/binaries/spark_tinker.bin
attempting to flash firmware to your core 1234567890abcdef
flash core said  {"id":"1234567890abcdef","status":"Update started"}
set_core_attributes { coreID: '1234567890abcdef',
  userID: '1a2b3c4d5e6f7A8B9C0D' }
FlashCore { coreID: '1234567890abcdef',
  userID: '1a2b3c4d5e6f7A8B9C0D+QQyn' }
flash core started! - sending api event { coreID: '1234567890abcdef' }
192.168.1.100 - - [Sun, 05 Oct 2014 09:34:18 GMT] "PUT /v1/devices/1234567890abcdef?access_token=060085e419be45ea4c4c1b7f09a443c2806a7fb3 HTTP/1.1" 200 68 "-" "-"
on response, no chunk, transfer done!
releasing flash ownership  { coreID: '1234567890abcdef' }
flash core finished! - sending api event { coreID: '1234567890abcdef' }
Connection from: 192.168.1.123, connId: 185
on ready { coreID: '1234567890abcdef',
  ip: '192.168.1.123',
  product_id: 0,
  firmware_version: 10,
  cache_key: '_184' }
Core online!

Caveats

  • Compiling through the local cloud is on the road map but doesn't work yet

Final Notes

Depending on your state of mind, you might perceive this as paranoid but I can guarantee you, this has nothing to do with paranoia in any way, neither should this be perceived as a rant against spark-core or Amazon Web Services for that matter. Amazon Web Services is just the cloud provider used by spark.io and therefore got mentioned because it is so. What applies here applies to any other cloud platform one could choose, in general. From a business standpoint of view the decision to put things into a AWS seems absolutely valid to me. Of course, it's a little more expensive when you crunch the numbers but in return you get the full orchestra of AWS products, which in my experience do a good job working together, route53, elb, multiple geolocations and the whole shabang. And you can react very quickly to changes in demand of requests. In a perfect world, I would just use it as it is, because the setup isn't bad when we consider bandwidth not a problem. But when government agencies run haywire and military/intelligence/media war- and fearmongering go completely out of hand, as it obviously has during the last 12 years and no one really does a thing about it, the only logical place left to seek change is in oneself. Do it yourself then :) I am happy, grateful and amazed that now everybody can get these devices to tinker, create and learn. Hopefully, some of these experiments and examples will help someone else to save some time, to get their brains wrapped around the concepts of this one more quickly.

1) , 2)
Since source code is open, this can be changed to whatever we like.
3)
Remember: The Core stops in the connect() routine until connected to the cloud. Not one line of your code will be exceuted until that happens.
4)
See about weak SHA1 and cipher selection on SSL Check for api.spark.io
5)
Depending how you set up your VPN.

Discussion

fe80:1800:45ea:f5ae:1ff3:3b58:4850:e457, 2015/01/30 16:48

Hi! is it possible to have the local cloud server in a raspberry Pi?

would it be similar instructions as here to do it?

BR

chrono, 2015/01/30 17:02

I can't think of any reason why not. The local spark-core server does not need much in terms of system resources, it should be working on a RPi just as well - untested however, so please take this statement as “gut feeling” based on prior experience with other projects. I guess the only difference would be that you need a crosscompiler toolchain on the RPi to compile spark-core firmware.

Alternatively, you can just run the spark-server on the RPi and configure your local x86_64 laptop/workstation with a working cross-compile toolchain, so you develop on your client and use the local spark-cloud on the RPi to deliver the firmware to the cores. Should be no biggy :)

fe80:1b8f:b41b:464a:1c5d:ed77:c72d:c2bb, 2015/02/22 07:25

I wrote a tutorial months back on how to get it installed on Rpi is you are keen: https://www.gitbook.io/book/kennethlimcp/spark-local-cloud-on-raspberry-pi

chrono, 2015/03/10 14:51

Sweet, thanks for sharing.

fe80:ed06:0963:f501:93e4:d9ac:e3d8:d083, 2015/03/10 00:53

Thanks for the blog. At this local spark cloud have included him a WebAPI to integrate Core Spark with GET / POST / PUT ? . So could make requests and / or responses . Thank You.

chrono, 2015/03/10 14:51, 2015/03/10 14:51

Yes, of course. The Spark CLI does nothing else than jsut being a wrapper for the API calls, there is a little more info about that on Spark-Core Hacking: Read MQ2 sensor data.

You can look into the code or watch the output of the local-cloud server to see how the URLs are structured. Here's one example to get the result of the command “status” of one of the cores:

GET /v1/devices/abcdef123456789/status?access_token=1234567890abcdef.

Same thing goes for events events or even global firehoses.

yanmaneee, 2023/11/05 09:18

http://www.kd14.org http://www.kd12.us.com http://www.supreme.com.co http://www.kobe-shoes.us.com http://www.supremesoutlet.us.com http://www.kd14shoes.com http://www.bape.us.org http://www.yeezy-shoes.us.org http://www.offwhite-shoes.us.org http://www.kd12.org http://www.paulgeorge.us.com http://www.goyardhandbag.us.org http://www.kd15shoes.com http://www.hermes-outlets.com http://www.kyrie7shoes.us http://www.goyardshandbag.com http://www.yeezyboost380.us.com http://www.jordan1shoes.us http://www.abathingapeofficial.com http://www.cheapjordan.us http://www.adidasyeezyboost350.us.com http://www.jordan11retro.us.com http://www.jordanssneakers.us.com http://www.supreme-newyork.us.org https://www.fearofgodoutlet.com http://www.off-whiteclothing.us.org http://www.golden-goosesoutlet.com http://www.supreme-clothing.us.org http://www.curry9.us http://www.shoes-yeezy.us http://www.jordan4.us.com http://www.travisscotjordan.com http://www.supremenewyork.us.org http://www.off-whiteshoes.us.com http://www.offwhitetshirt.us.com http://www.offwhitehoodies.us http://www.off--white.us.com http://www.kyrie-7.com http://www.goldengoosesonline.com http://www.supremenewyork.us.com http://www.jordanstoreonline.com https://www.supremeoutlet.us.com http://www.goldengooseonlinestore.com http://www.palmangels.us.com http://www.goyardsstoreonline.com http://www.kyrie-8.com http://www.golden-gooses.com http://www.adidasyeezyuk.com http://www.jordan12.us.com http://www.supremes-clothing.us.com http://www.travisscotjordan.us http://www.kd13shoes.us http://www.offwhitexjordan.com http://www.gaps.us.com http://www.palmangels-clothing.com http://www.hermesbirkins.com http://www.bathing-ape.us http://www.jordansforcheap.us.com http://www.jordanshoesstore.us.com https://www.air-jordanoutlet.com http://www.goldengoosesale.us.org http://www.palmangelsoutlet.us.com http://www.bape-shoes.com http://www.jordansshoes.us.org http://www.hermesbagsonline.com http://www.offwhitexnike.com http://www.goyardbags.us.com http://www.bape-clothing.us http://www.offwhite.us.org http://www.kd15.us https://www.palmangelsonline.com http://www.bapeshoodie.com https://www.hermesoutlets.com http://www.bapes.us.org http://www.paulgeorgeshoes.us.com http://www.off-whiteclothing.us.com http://www.kyrie5spongebob.us http://www.air-jordan.us.com http://www.bapesclothing.com http://www.bapehoodie.us http://www.fearofgodoutlet.us.com http://www.bape-clothing.com http://www.jordanxtravisscott.com http://www.goyardoutlets.us http://www.yeezy-350.us.com http://www.supremeclothingstore.com http://www.goyardshandbags.us.org https://www.hermesonlineshop.com http://www.bapesoutlet.com http://www.supremeclothings.com http://www.kyrie7.us http://www.bape-shirt.us.com http://www.jordan13.us.com http://www.goldengooseoutletus.com http://www.fearofgod-clothing.com http://www.supreme.us.org http://www.kyrie9.com https://www.offwhitesoutlet.com http://www.goldengoosedeluxebrand.us.com http://www.supreme-clothings.us.com http://www.goyardsoutlet.com http://www.off--whiteclothing.com http://www.gapyeezy.org http://www.shoesjordan.us.com http://www.goldengooseshoes.us.org http://www.russellwestbrookshoes.us http://www.michaeljordanshoes.us.com http://www.fearofgodhoodie.com http://www.kyrie6.org http://www.kyrie9.us http://www.bapesonline.com http://www.fearofgod.us.com http://www.chromeheartstoreonline.com http://www.yeezy350boost.us.com http://www.off-whiteoutlet.us.com http://www.cheapjordanshoes.us.com http://www.bape-hoodie.com http://www.jordan-retro.us.com http://www.offwhitesonline.com http://www.supremes.us.org http://www.curry9shoes.com https://www.goldengoosessale.com http://www.curry-8.us https://www.off-whiteonline.com http://www.goldengoose.us.org https://www.kyrieirving-shoes.us.com http://www.off--whiteoutlet.com http://www.hermesoutletsonline.com http://www.birkinbag.us.com http://www.stephcurry.us http://www.bapesta.us.com http://www.giannisantetokounmposhoes.us http://www.bape-stas.com http://www.yeezy-500.us.com http://www.offwhitexjordan1.com http://www.goldengooseofficial.com http://www.yeezy700.us.com http://www.curry6.net http://www.palmangels-hoodie.com http://www.kobe.us.com http://www.supremeclothing.us.org http://www.kd-shoes.us http://www.supremesonline.com http://www.off---whiteshoes.com http://www.supremeclothings.us.com http://www.kyrieirvingshoes.us http://www.goyard-outlet.com http://www.jordansshoes.us.com http://www.kevindurantshoes.us.com http://www.kyrie8shoes.com http://www.supremeshirt.us.com http://www.off-whitehoodie.com http://www.yeezysneakers.us.org http://www.jordans-shoes.us.org http://www.sbdunk.us http://www.yeezyboost.us http://www.fearofgodessential.com http://www.goldengoosesneakerssale.us.com http://www.ggdb.us.com http://www.kyrie8.us http://www.offwhiteoutlet.us.org http://www.jordantravisscott.com http://www.cheapjordanss.us.com http://www.goldengooseoutletstore.com http://www.goyardshandbag.us https://www.off-whites.us http://www.hermes-handbags.us.com http://www.goldengoosesstore.com http://www.hermesbelts.us.org

OKBet, 2023/12/13 02:26

I Like!! Really appreciate you sharing this blog post.Really thank you! Keep writing. Online Casino Philippines

pula puti, 2024/01/26 07:52

Bilib ako sa artikulong ito, malaki ang naging gabay nito sa aking pagsusulat; pero, sana ay tingnan mo rin ang aking mga artikulo.

25fox, 2024/02/12 23:33

Buy a driver's license Hello, welcome to the world's largest online driver's license organization. We sell authentic and registered driving licenses and we have several driving schools with which we collaborate.

https://origineelrijbewijskopen.com/

https://origineelrijbewijskopen.com/2023/11/10/rijbewijs-kopen-telegram/

https://origineelrijbewijskopen.com/2023/10/24/rijbewijs-kopen-nederland/ https://origineelrijbewijskopen.com/2023/11/01/rijbewijs-kopen-belgie/

https://origineelrijbewijskopen.com/2023/11/07/rijbewijs-a-kopen/

https://origineelrijbewijskopen.com/2023/11/07/rijbewijs-kopen-prijs/

https://origineelrijbewijskopen.com/2023/11/07/rijbewijs-te-koop-belgie/

https://origineelrijbewijskopen.com/2023/11/10/belgisch-rijbewijs-kopen/

https://origineelrijbewijskopen.com/2023/11/10/rijbewijs-kopen-duitsland/ https://origineelrijbewijskopen.com/2023/11/10/rijbewijs-examens-kopen/

https://origineelrijbewijskopen.com/2023/11/10/rijbewijs-kopen-hongarije/

What a nice post! I'm so happy to read this. What you wrote was very helpful to me. Thank you. Actually, I run a site similar to yours. If you have time, could you visit my site? Please leave your comments after reading what I wrote. If you do so, I will actively reflect your opinion. I think it will be a great help to run my site. Have a good day.

https://cf-cc-qualitylab.com/

https://cf-cc-qualitylab.com/product/american-dollars-for-sale/

https://cf-cc-qualitylab.com/product/buy-counterfeit-aud-online/

https://cf-cc-qualitylab.com/product/buy-fake-british-pounds-online/

https://cf-cc-qualitylab.com/product/buy-fake-euro-banknotes-online/

https://cf-cc-qualitylab.com/product/buy-new-zealand-dollars-online/ https://cf-cc-qualitylab.com/product/buy-undetected-canadian-dollars/

It is incredibly average to see the best inconspicuous components presented in a basic and seeing way Thank you. Actually, I run a site similar to yours. If you have time, could you visit my site? Please leave your comments after reading what I wrote. If you do so, I will actively reflect your opinion. I think it will be a great help to run my site. Have a good day.

https://cf-cc-qualitylab.com/product/paypal-flip/

https://cf-cc-qualitylab.com/product/western-union-flip/

https://cf-cc-qualitylab.com/product/cash-app-flip/ https://cf-cc-qualitylab.com/product/western-union-flip-sale/

https://cf-cc-qualitylab.com/product/legit-paypal-flip/

https://cf-cc-qualitylab.com/product/legit-cash-app-flip/ https://cf-cc-qualitylab.com/product/buy-cloned-cards/

https://cf-cc-qualitylab.com/product/buy-credit-card-dumps-online/

https://cf-cc-qualitylab.com/product/cloned-credit-cards-for-sale/ https://cf-cc-qualitylab.com/product/legit-paypal-money-transfer/

https://cf-cc-qualitylab.com/product/legit-paypal-money-transfer/

https://cf-cc-qualitylab.com/product/western-union-money-flip/

https://cf-cc-qualitylab.com/product/hacked-cash-app/

Such an especially significant article. To a great degree charming to examine this article.I should need to thank you for the undertakings you had made for creating this astonishing article. https://cf-cc-qualitylab.com/product/automated-money-developer-machines/

https://cf-cc-qualitylab.com/product/high-quality-automatic-solution/ https://cf-cc-qualitylab.com/product/ssd-chemical-solution-packaging-materials/

https://cf-cc-qualitylab.com/product/vector-paste-ssd-solution/ https://cf-cc-qualitylab.com/product/humine-activation-powder/

https://cf-cc-qualitylab.com/product/99-99-pure-gallium-metal-alloy-for-mercury-replacement/ https://cf-cc-qualitylab.com/product/automated-money-developer-machines/

I am another client of this site so here I saw different articles and posts posted by this site,I inquisitive more enthusiasm for some of them trust you will give more data on this points in your next articles.

https://cf-cc-qualitylab.com/2024/02/01/western-union-uberweisen-umdrehen/ https://cf-cc-qualitylab.com/2024/02/01/kaufen-sie-western-union-umdrehen/

https://cf-cc-qualitylab.com/product/automated-money-developer-machines/

https://cf-cc-qualitylab.com/2024/02/01/koop-western-union-omzet/

https://cf-cc-qualitylab.com/2024/01/31/acquistare-lanciare-western-union/

https://cf-cc-qualitylab.com/2024/01/31/contanti-ribaltabili-della-western-union/

https://cf-cc-qualitylab.com/2024/01/30/volteo-de-dinero-de-western-union/

https://cf-cc-qualitylab.com/2024/01/30/comprar-voltear-de-western-union/

https://cf-cc-qualitylab.com/2024/01/28/transfert-dargent-western-union/

https://cf-cc-qualitylab.com/2024/01/28/retournement-de-western-union/

https://cf-cc-qualitylab.com/2024/01/27/online-kredietkaart-dumps-kopen/

https://cf-cc-qualitylab.com/2024/01/27/gekloonde-kredietkaarten-te-koop/

https://cf-cc-qualitylab.com/2024/01/27/gekloonde-kaarten-kopen/ https://cf-cc-qualitylab.com/2024/01/27/kaufen-sie-kreditkarten-dumps-online/

https://cf-cc-qualitylab.com/2024/01/27/geklonte-karten-dumps-zum-verkauf/

All things considered I read it yesterday yet I had a few musings about it and today I needed to peruse it again in light of the fact that it is extremely elegantly composed.

https://cf-cc-qualitylab.com/2024/01/27/kaufen-sie-geklonte-karten/

https://cf-cc-qualitylab.com/2024/01/27/acquistare-scarico-di-carte-di-credito-in-linea/ https://cf-cc-qualitylab.com/2024/01/27/carte-di-credito-clonate-in-vendita/ https://cf-cc-qualitylab.com/2024/01/27/carte-clonate-in-vendita/ https://cf-cc-qualitylab.com/2024/01/26/comprar-volcados-de-tarjetas-de-credito/

https://cf-cc-qualitylab.com/2024/01/26/tarjetas-de-credito-clonadas-a-la-venta/ https://cf-cc-qualitylab.com/2024/01/25/comprar-tarjetas-clonadas/ https://cf-cc-qualitylab.com/2024/01/25/acheter-des-dumps-de-cartes-de-credit-en-ligne/

https://cf-cc-qualitylab.com/2024/01/25/cartes-de-credit-clonees-a-vendre/

https://cf-cc-qualitylab.com/2024/01/25/cartes-clonees-a-vendre/ https://cf-cc-qualitylab.com/2024/01/23/requisitengeld-zum-verkauf/ https://cf-cc-qualitylab.com/2024/01/23/falschgeld-kaufen/

https://cf-cc-qualitylab.com/2024/01/23/gefalschter-euro-zum-verkauf/

https://cf-cc-qualitylab.com/2024/01/21/koop-valse-polymeerbiljetten/ https://cf-cc-qualitylab.com/2024/01/21/koop-valse-bankbiljetten/

 Actually, I run a site similar to yours. If you have time, could you visit my site? Please leave your comments after reading what I wrote. If you do so, I will actively reflect your opinion. I think it will be a great help to run my site. Have a good day.

https://cf-cc-qualitylab.com/2024/01/21/koop-valse-euro-bankbiljetten/

https://cf-cc-qualitylab.com/2024/01/21/comprar-dinero-falso-en-linea/

https://cf-cc-qualitylab.com/2024/01/21/comprar-dinero-falso/

https://cf-cc-qualitylab.com/2024/01/21/billetes-de-euro-a-la-venta/

https://cf-cc-qualitylab.com/2024/01/17/soldi-realistici-in-vendita/

https://cf-cc-qualitylab.com/2024/01/17/acquistare-denaro-falso/ https://cf-cc-qualitylab.com/2024/01/17/banconote-in-euro-in-vendita/ https://cf-cc-qualitylab.com/2024/01/17/argent-accessoire-a-vendre/ https://cf-cc-qualitylab.com/2024/01/17/acheter-des-billets-indetectables/ https://cf-cc-qualitylab.com/2024/01/17/faux-euros-a-vendre-en-ligne/

https://cf-cc-qualitylab.com/2024/01/09/buy-euros-online-cyprus/

https://cf-cc-qualitylab.com/2024/01/09/fake-polymer-notes-for-sale/

https://cf-cc-qualitylab.com/2024/01/09/counterfeit-money-for-sale/

https://cf-cc-qualitylab.com/2024/01/09/buy-fake-dollar-bills/

https://cf-cc-qualitylab.com/2024/01/09/buy-prop-money-canada/

https://cf-cc-qualitylab.com/2024/01/09/buy-fake-polymer-notes/

jilislot, 2024/03/07 08:17

Natutuwa ako sa dami ng mga topic na iyong sinasaklaw sa blog. Ang pag-ikot ng excitement sa Casino Plus ay gumagawa ng bawat laro na hindi mapagpaliban, na nagbibigay daan sa tagumpay bilang isang kapanapanabik na ekspedisyon.“

Enter your comment. Wiki syntax is allowed:
E S T Z Z