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
`SlicingDice(const char* apiKey, boolean production, const char* host, int port)`
79
79
*`apiKey (const char*)` - [API key](http://panel.slicingdice.com/docs/#api-details-api-connection-api-keys) to authenticate requests with the SlicingDice API.
80
-
*`production(boolean)` - If true the client will send requests to production end-point, otherwise to tests end-point.
*`apiKey (const char*)` - [API key](http://panel.slicingdice.com/docs/#api-details-api-connection-api-keys) to authenticate requests with the SlicingDice API.
84
-
*`host (const char*)` - [Connection endpoint](http://panel.slicingdice.com/docs/#api-details-api-connection-connection-endpoints) to use when generating requests to SlicingDice.
85
-
86
-
`SlicingDice(const char* apiKey, const char* host, int port)`
87
-
*`apiKey (const char*)` - [API key](http://panel.slicingdice.com/docs/#api-details-api-connection-api-keys) to authenticate requests with the SlicingDice API.
88
-
*`host (const char*)` - [Connection endpoint](http://panel.slicingdice.com/docs/#api-details-api-connection-connection-endpoints) to use when generating requests to SlicingDice.
89
-
*`port (int)` - Port to connect to when generating requests. Particularly useful when connect to `http://localhost`.
90
-
91
-
`SlicingDice(const char* apiKey, const char* host, int port, boolean production)`
92
-
*`apiKey (const char*)` - [API key](http://panel.slicingdice.com/docs/#api-details-api-connection-api-keys) to authenticate requests with the SlicingDice API.
93
-
*`host (const char*)` - [Connection endpoint](http://panel.slicingdice.com/docs/#api-details-api-connection-connection-endpoints) to use when generating requests to SlicingDice.
94
-
*`port (int)` - Port to connect to when generating requests. Particularly useful when connect to `http://localhost`.
95
-
*`production(boolean)` - If true the client will send requests to production end-point, otherwise to tests end-point.
80
+
*`production(boolean)` - (Default: true) If true the client will send requests to production end-point, otherwise to tests end-point.
81
+
*`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.
82
+
*`port (int)` - (Default: 80) Port to connect to when generating requests. Particularly useful when connect to `http://localhost`.
96
83
97
84
### `void index(JsonObject& query)`
98
85
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).
@@ -120,8 +107,8 @@ void setup() {
120
107
byte ip[] = { 192, 168, 0, 10 };
121
108
byte gateway[] = { 192, 168, 0, 1 };
122
109
byte subnet[] = { 255, 255, 255, 0 };
123
-
byte dnxs[] = { 8, 8, 8, 8 };
124
-
Ethernet.begin(mac, ip, dnxs, gateway, subnet);
110
+
byte dns[] = { 8, 8, 8, 8 };
111
+
Ethernet.begin(mac, ip, dns, gateway, subnet);
125
112
}
126
113
127
114
// Send an indexation command to Slicing Dice API and print the result
0 commit comments