You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+29-23Lines changed: 29 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -8,11 +8,11 @@ Official Arduino client for [SlicingDice](http://www.slicingdice.com/), Data War
8
8
9
9
If you are new to SlicingDice, check our [quickstart guide](http://panel.slicingdice.com/docs/#quickstart-guide) and learn to use it in 15 minutes.
10
10
11
-
Please refer to the [SlicingDice official documentation](http://panel.slicingdice.com/docs/) for more information on [analytics databases](http://panel.slicingdice.com/docs/#analytics-concepts), [data modeling](http://panel.slicingdice.com/docs/#data-modeling), [indexing](http://panel.slicingdice.com/docs/#data-indexing), [querying](http://panel.slicingdice.com/docs/#data-querying), [limitations](http://panel.slicingdice.com/docs/#current-slicingdice-limitations) and [API details](http://panel.slicingdice.com/docs/#api-details).
11
+
Please refer to the [SlicingDice official documentation](http://panel.slicingdice.com/docs/) for more information on [analytics databases](http://panel.slicingdice.com/docs/#analytics-concepts), [data modeling](http://panel.slicingdice.com/docs/#data-modeling), [data insertion](http://panel.slicingdice.com/docs/#data-insertion), [querying](http://panel.slicingdice.com/docs/#data-querying), [limitations](http://panel.slicingdice.com/docs/#current-slicingdice-limitations) and [API details](http://panel.slicingdice.com/docs/#api-details).
12
12
13
13
### Note
14
14
15
-
SlicingDice's Arduino client currently supports only indexing commands. Let us
15
+
SlicingDice's Arduino client currently supports only data insert commands. Let us
16
16
know if you application requires Arduino to query data from SlicingDice
17
17
and we'll make sure to add this feature to our backlog.
18
18
@@ -47,17 +47,20 @@ void setup() {
47
47
Ethernet.begin(mac, ip, dns, gateway, subnet);
48
48
}
49
49
50
-
// Send an indexation command to Slicing Dice API and print the result
50
+
// Send an insert command to Slicing Dice API and print the result
@@ -72,12 +75,12 @@ Whether you want to test the client installation or simply check more examples o
72
75
73
76
## Reference
74
77
75
-
`SlicingDice` encapsulates logic for sending requests to the [index endpoint](http://panel.slicingdice.com/docs/#api-details-api-endpoints-post-index).
78
+
`SlicingDice` encapsulates logic for sending requests to the [insert endpoint](http://panel.slicingdice.com/docs/#api-details-api-endpoints-post-insert).
76
79
77
80
### Attributes
78
81
79
-
*`statusCode (int)` - HTTP status code after indexing to SlicingDice. Should be `200` in ordinary circumstances or one of the HTTP requests defined at the [API errors](http://panel.slicingdice.com/docs/#api-details-api-errors) section.
80
-
*`response (String)` - Response after indexing data. Useful for debugging purposes.
82
+
*`statusCode (int)` - HTTP status code after inserting to SlicingDice. Should be `200` in ordinary circumstances or one of the HTTP requests defined at the [API errors](http://panel.slicingdice.com/docs/#api-details-api-errors) section.
83
+
*`response (String)` - Response after inserting data. Useful for debugging purposes.
81
84
82
85
### Constructors
83
86
@@ -87,8 +90,8 @@ Whether you want to test the client installation or simply check more examples o
87
90
*`host (const char*)` - (Default: api.slicingdice.com) [Connection endpoint](http://panel.slicingdice.com/docs/#api-details-api-connection-connection-endpoints) to use when generating requests to SlicingDice.
88
91
*`port (int)` - (Default: 80) Port to connect to when generating requests. Particularly useful when connect to `http://localhost`.
89
92
90
-
### `void index(JsonObject& query)`
91
-
Index data to existing entities or create new entities, if necessary. This method corresponds to a [POST request at /index](http://panel.slicingdice.com/docs/#api-details-api-endpoints-post-index).
93
+
### `void insert(JsonObject& query)`
94
+
Insert data to existing entities or create new entities, if necessary. This method corresponds to a [POST request at /insert](http://panel.slicingdice.com/docs/#api-details-api-endpoints-post-insert).
92
95
93
96
#### Request example
94
97
@@ -117,17 +120,20 @@ void setup() {
117
120
Ethernet.begin(mac, ip, dns, gateway, subnet);
118
121
}
119
122
120
-
// Send an indexation command to Slicing Dice API and print the result
123
+
// Send an insertation command to Slicing Dice API and print the result
0 commit comments