@@ -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 )
133133response10 = 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 )
144144t1 <- list (timedValue1 , timedValue2 )
145145t2 <- 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 );
148148values <- list (s1 , s2 )
149149response11 <- piWebApiService $ streamSet $ updateValuesAdHoc(values , " BufferIfPossible" , " Replace" );
150150```
@@ -153,7 +153,7 @@ response11 <- piWebApiService$streamSet$updateValuesAdHoc(values, "BufferIfPossi
153153
154154``` r
155155createdPoint <- piWebApiService $ point $ getByPath(" \\\\ PIFITNESS-SRV2\\ SINUSOIDR" )
156- updatePoint <- piPoint ()
156+ updatePoint <- PIPoint ()
157157updatePoint $ Descriptor <- " 12 Hour Sine Wave for R"
158158response12 <- piWebApiService $ point $ update(createdPoint $ WebId , updatePoint )
159159```
@@ -187,7 +187,7 @@ denyRights[1] = "Write"
187187denyRights [2 ] = " Execute"
188188denyRights [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 ))
191191response15 <- piWebApiService $ element $ createSecurityEntry(elementWebId , securityEntry , TRUE );
192192```
193193
@@ -207,7 +207,7 @@ denyRights[1] = "Write"
207207denyRights [2 ] = " Execute"
208208denyRights [3 ] = " Admin"
209209denyRights [4 ] = " ReadData"
210- securityEntry <- piSecurityEntry (allowRights = allowRight , denyRights = denyRights )
210+ securityEntry <- PISecurityEntry (allowRights = allowRight , denyRights = denyRights )
211211response17 <- piWebApiService $ element $ updateSecurityEntry(" SwaggerIdentity" , elementWebId , securityEntry , TRUE )
212212```
213213
0 commit comments