Skip to content

Commit f501534

Browse files
author
Marcos Vainer Loeff
committed
Update README
1 parent 9e5c82b commit f501534

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -129,22 +129,22 @@ The path from the methods above should start with "pi:" (if your stream is a PI
129129
### Create a PI Point
130130

131131
```r
132-
newPoint <- piPoint(NULL, NULL, "SINUSOIDR", NULL, "12 Hour Sine Wave", "classic", "Float32", NULL, NULL, NULL, NULL, NULL)
132+
newPoint <- PIPoint(NULL, NULL, "SINUSOIDR", NULL, "12 Hour Sine Wave", "classic", "Float32", NULL, NULL, NULL, NULL, NULL)
133133
response10 = piWebApiService$dataServer$createPoint("s0TJVKOA0Ws0KihcA8rM1GogUElGSVRORVNTLVNSVjI", newPoint)
134134
```
135135

136136

137137
### Send values in bulk using the StreamSet/UpdateValuesAdHoc
138138

139139
```r
140-
timedValue1 <- piTimedValue(timestamp = "2017-04-26T17:40:54Z", value = 30)
141-
timedValue2 <- piTimedValue(timestamp = "2017-04-27T17:40:54Z", value = 31)
142-
timedValue3 <- piTimedValue(timestamp = "2017-04-26T17:40:54Z", value = 32)
143-
timedValue4 <- piTimedValue(timestamp = "2017-04-27T17:40:54Z", value = 33)
140+
timedValue1 <- PITimedValue(timestamp = "2017-04-26T17:40:54Z", value = 30)
141+
timedValue2 <- PITimedValue(timestamp = "2017-04-27T17:40:54Z", value = 31)
142+
timedValue3 <- PITimedValue(timestamp = "2017-04-26T17:40:54Z", value = 32)
143+
timedValue4 <- PITimedValue(timestamp = "2017-04-27T17:40:54Z", value = 33)
144144
t1 <- list(timedValue1, timedValue2)
145145
t2 <- list(timedValue3, timedValue4)
146-
s1 <- piStreamValues(webId = webIds[1], items = t1);
147-
s2 <- piStreamValues(webId = webIds[2], items = t2);
146+
s1 <- PIStreamValues(webId = webIds[1], items = t1);
147+
s2 <- PIStreamValues(webId = webIds[2], items = t2);
148148
values <- list(s1, s2)
149149
response11 <- piWebApiService$streamSet$updateValuesAdHoc(values, "BufferIfPossible", "Replace");
150150
```
@@ -153,7 +153,7 @@ response11 <- piWebApiService$streamSet$updateValuesAdHoc(values, "BufferIfPossi
153153

154154
```r
155155
createdPoint <- piWebApiService$point$getByPath("\\\\PIFITNESS-SRV2\\SINUSOIDR")
156-
updatePoint <- piPoint()
156+
updatePoint <- PIPoint()
157157
updatePoint$Descriptor <- "12 Hour Sine Wave for R"
158158
response12 <- piWebApiService$point$update(createdPoint$WebId, updatePoint)
159159
```
@@ -187,7 +187,7 @@ denyRights[1] = "Write"
187187
denyRights[2] = "Execute"
188188
denyRights[3] = "Admin"
189189

190-
securityEntry <- piSecurityEntry(securityIdentityName = "SwaggerIdentity", allowRights = as.list(allowRight), denyRights = as.list(denyRights))
190+
securityEntry <- PISecurityEntry(securityIdentityName = "SwaggerIdentity", allowRights = as.list(allowRight), denyRights = as.list(denyRights))
191191
response15 <- piWebApiService$element$createSecurityEntry(elementWebId, securityEntry, TRUE);
192192
```
193193

@@ -207,7 +207,7 @@ denyRights[1] = "Write"
207207
denyRights[2] = "Execute"
208208
denyRights[3] = "Admin"
209209
denyRights[4] = "ReadData"
210-
securityEntry <- piSecurityEntry(allowRights = allowRight, denyRights = denyRights)
210+
securityEntry <- PISecurityEntry(allowRights = allowRight, denyRights = denyRights)
211211
response17 <- piWebApiService$element$updateSecurityEntry("SwaggerIdentity", elementWebId, securityEntry, TRUE)
212212
```
213213

0 commit comments

Comments
 (0)