{"action":"created","issue":{"url":"https://api.github.com/repos/rmodbus/rmodbus/issues/51","repository_url":"https://api.github.com/repos/rmodbus/rmodbus","labels_url":"https://api.github.com/repos/rmodbus/rmodbus/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/rmodbus/rmodbus/issues/51/comments","events_url":"https://api.github.com/repos/rmodbus/rmodbus/issues/51/events","html_url":"https://github.com/rmodbus/rmodbus/issues/51","id":183448667,"number":51,"title":"Read 32 bit floating point holding registers","user":{"login":"gfoiani","id":1247078,"avatar_url":"https://avatars.githubusercontent.com/u/1247078?v=3","gravatar_id":"","url":"https://api.github.com/users/gfoiani","html_url":"https://github.com/gfoiani","followers_url":"https://api.github.com/users/gfoiani/followers","following_url":"https://api.github.com/users/gfoiani/following{/other_user}","gists_url":"https://api.github.com/users/gfoiani/gists{/gist_id}","starred_url":"https://api.github.com/users/gfoiani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gfoiani/subscriptions","organizations_url":"https://api.github.com/users/gfoiani/orgs","repos_url":"https://api.github.com/users/gfoiani/repos","events_url":"https://api.github.com/users/gfoiani/events{/privacy}","received_events_url":"https://api.github.com/users/gfoiani/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-17T15:28:53Z","updated_at":"2016-10-17T16:21:47Z","closed_at":null,"body":"Hi all,\r\n\r\nI'm trying to read a sequence of 32 bit floating point holding registers.\r\nCan someone give me an example of how to do that?\r\n\r\nI can read those registers but they are represented as 16 bit registers...\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/rmodbus/rmodbus/issues/comments/254256950","html_url":"https://github.com/rmodbus/rmodbus/issues/51#issuecomment-254256950","issue_url":"https://api.github.com/repos/rmodbus/rmodbus/issues/51","id":254256950,"user":{"login":"fernandoluizao","id":52836,"avatar_url":"https://avatars.githubusercontent.com/u/52836?v=3","gravatar_id":"","url":"https://api.github.com/users/fernandoluizao","html_url":"https://github.com/fernandoluizao","followers_url":"https://api.github.com/users/fernandoluizao/followers","following_url":"https://api.github.com/users/fernandoluizao/following{/other_user}","gists_url":"https://api.github.com/users/fernandoluizao/gists{/gist_id}","starred_url":"https://api.github.com/users/fernandoluizao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fernandoluizao/subscriptions","organizations_url":"https://api.github.com/users/fernandoluizao/orgs","repos_url":"https://api.github.com/users/fernandoluizao/repos","events_url":"https://api.github.com/users/fernandoluizao/events{/privacy}","received_events_url":"https://api.github.com/users/fernandoluizao/received_events","type":"User","site_admin":false},"created_at":"2016-10-17T16:21:47Z","updated_at":"2016-10-17T16:21:47Z","body":"You can call to_32f like this:\r\n\r\n```\r\nslave.holding_registers[0..1].to_32f\r\n=> [1.345676]\r\n```\r\n\r\nYou will get an array of floats, since you can read more than 2 registers at once, to_32f will convert them all as long as they are multiples of 2."}}
{"actor":{"display_login":"fernandoluizao"}}