diff --git a/r2s-bwmsgsv2.rb b/r2s-bwmsgsv2.rb index 9c0815d7e0e6cf5f01d8ca8ef1fd3f185aa52d6e..4f141d3f0ae1b8af50b4fe1427dc9aa60198e9f2 100755 --- a/r2s-bwmsgsv2.rb +++ b/r2s-bwmsgsv2.rb @@ -91,7 +91,7 @@ while true uri = URI("http://#{ARGV[1]}:#{ARGV[2]}/") req = Net::HTTP::Post.new(uri, 'Content-Type' => 'application/json') - req.body = "{#{new_json_blob}}" # TODO: should just be MSG part (?) + req.body = new_json_blob.split('G')[1][2..-1] # only use MSG part begin res = Net::HTTP.start(uri.hostname, uri.port) do |http| http.request(req)