@@ -36,7 +36,7 @@ class Network {
3636 const request = new HttpRequest ( `http://${ this . IP } :${ this . Port } /` ) ;
3737 request . setTimeout ( 5 ) ;
3838 request . setBody ( JSON . stringify ( packet ) ) ;
39- request . setMethod ( HttpRequestMethod . POST ) ;
39+ request . setMethod ( HttpRequestMethod . Post ) ;
4040 request . setHeaders ( [ new HttpHeader ( "Content-Type" , "application/json" ) ] ) ;
4141 http . request ( request ) . then ( ( response ) => {
4242 if ( response . status == 200 ) {
@@ -77,7 +77,7 @@ class Network {
7777 const request = new HttpRequest ( `http://${ this . IP } :${ this . Port } /` ) ;
7878 request . setTimeout ( 5 ) ;
7979 request . setBody ( JSON . stringify ( packet ) ) ;
80- request . setMethod ( HttpRequestMethod . POST ) ;
80+ request . setMethod ( HttpRequestMethod . Post ) ;
8181 request . setHeaders ( [ new HttpHeader ( "Content-Type" , "application/json" ) ] ) ;
8282 http . request ( request ) . then ( ( response ) => {
8383 if ( response . status == 202 ) {
@@ -115,7 +115,7 @@ class Network {
115115 const request = new HttpRequest ( `http://${ this . IP } :${ this . Port } /` ) ;
116116 request . setTimeout ( 5 ) ;
117117 request . setBody ( JSON . stringify ( packet ) ) ;
118- request . setMethod ( HttpRequestMethod . POST ) ;
118+ request . setMethod ( HttpRequestMethod . Post ) ;
119119 request . setHeaders ( [ new HttpHeader ( "Content-Type" , "application/json" ) ] ) ;
120120 http . request ( request ) . then ( ( response ) => {
121121 if ( response . status == 200 ) {
@@ -147,7 +147,7 @@ class Network {
147147 const request = new HttpRequest ( `http://${ this . IP } :${ this . Port } /` ) ;
148148 request . setTimeout ( 5 ) ;
149149 request . setBody ( JSON . stringify ( packet ) ) ;
150- request . setMethod ( HttpRequestMethod . POST ) ;
150+ request . setMethod ( HttpRequestMethod . Post ) ;
151151 request . setHeaders ( [ new HttpHeader ( "Content-Type" , "application/json" ) ] ) ;
152152 http . request ( request ) . then ( ( response ) => {
153153 if ( response . status == 200 ) {
@@ -245,7 +245,7 @@ system.runInterval(() => {
245245 const request = new HttpRequest ( `http://${ Network . IP } :${ Network . Port } /` ) ;
246246 request . setTimeout ( 5 ) ;
247247 request . setBody ( JSON . stringify ( packet ) ) ;
248- request . setMethod ( HttpRequestMethod . POST ) ;
248+ request . setMethod ( HttpRequestMethod . Post ) ;
249249 request . setHeaders ( [ new HttpHeader ( "Content-Type" , "application/json" ) ] ) ;
250250
251251 http . request ( request ) . then ( ( response ) => {
@@ -292,7 +292,7 @@ system.runInterval(() => {
292292 const request = new HttpRequest ( `http://${ Network . IP } :${ Network . Port } /` ) ;
293293 request . setTimeout ( 5 ) ;
294294 request . setBody ( JSON . stringify ( packet ) ) ;
295- request . setMethod ( HttpRequestMethod . POST ) ;
295+ request . setMethod ( HttpRequestMethod . Post ) ;
296296 request . setHeaders ( [ new HttpHeader ( "Content-Type" , "application/json" ) ] ) ;
297297 http . request ( request ) . then ( ( response ) => {
298298 if ( response . status == 200 ) {
0 commit comments