Skip to content

chrylarson/akka-iot-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Working implementation of the IoT Akka Example

Includes HTTP endpoints for writing to a device's temperature, reading a device's temperature and listing all device actors.

Start a device actor

curl --request GET \
  --url http://localhost:8080/group/1/device/1

Send temperature data

curl --request POST \
  --url http://localhost:8080/group/1/device/1/data \
  --header 'content-type: application/json' \
  --data '{
	"value" : 24.23
}'

Read temperature data

curl --request GET \
  --url http://localhost:8080/group/1/device/1/data \
  --header 'content-type: application/json'

List all active actors

curl --request GET \
  --url http://localhost:8080/group/1/all