Skip to content

Commit

Permalink
REST-PCA rename to XPCA
Browse files Browse the repository at this point in the history
  • Loading branch information
atimin committed Jul 16, 2011
1 parent abed890 commit 7fe1626
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions examples/simple-pca → examples/simple-xpca-gateway.rb
@@ -1,6 +1,5 @@
#!/usr/bin/env ruby
=begin
It's very simple example of implementation REST-PCA server (see http://www.xpca.org/rest-pca/)
It's very simple example of implementation XPCA gateway (see http://www.xpca.org)
for communication with TCP ModBus devices
It receives REST requests (e.g http://127.0.0.1:4567/mb/127.0.0.1/8502/1/coils/6/17 )
and returns data in JSON format addr : data:
Expand Down Expand Up @@ -79,7 +78,7 @@
:message => e.message }
}
end

content_type "application/json"
resp.to_json
end

0 comments on commit 7fe1626

Please sign in to comment.