{"id":2044,"date":"2022-11-14T08:51:18","date_gmt":"2022-11-14T08:51:18","guid":{"rendered":"https:\/\/www.beaconzone.co.uk\/blog\/?p=2044"},"modified":"2022-11-14T08:52:22","modified_gmt":"2022-11-14T08:52:22","slug":"reducing-bluetooth-wifi-gateway-connections","status":"publish","type":"post","link":"https:\/\/www.beaconzone.co.uk\/blog\/reducing-bluetooth-wifi-gateway-connections\/","title":{"rendered":"Reducing Bluetooth WiFi Gateway Connections"},"content":{"rendered":"\n<p>When a Bluetooth WiFi Gateway sends data to a server via HTTP, the gateway has to connect to the server to start a connection and then use that connection to send the data. The connection part starts a new TCP connection with handshaking. Starting a new connection every time data needs to be sent to the server uses network data and creates work for the server.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.beaconzone.co.uk\/blog\/wp-content\/uploads\/2019\/02\/igs01s_smaller-1024x1024.jpg\" alt=\"\" class=\"wp-image-3183\" width=\"512\" height=\"512\" srcset=\"https:\/\/www.beaconzone.co.uk\/blog\/wp-content\/uploads\/2019\/02\/igs01s_smaller-1024x1024.jpg 1024w, https:\/\/www.beaconzone.co.uk\/blog\/wp-content\/uploads\/2019\/02\/igs01s_smaller-150x150.jpg 150w, https:\/\/www.beaconzone.co.uk\/blog\/wp-content\/uploads\/2019\/02\/igs01s_smaller-300x300.jpg 300w, https:\/\/www.beaconzone.co.uk\/blog\/wp-content\/uploads\/2019\/02\/igs01s_smaller-768x768.jpg 768w, https:\/\/www.beaconzone.co.uk\/blog\/wp-content\/uploads\/2019\/02\/igs01s_smaller.jpg 1200w\" sizes=\"(max-width: 512px) 85vw, 512px\" \/><figcaption class=\"wp-element-caption\">iGS01S<\/figcaption><\/figure><\/div>\n\n\n<p>Some gateways such as the <a href=\"https:\/\/www.beaconzone.co.uk\/INGICS\/iGS01S\" target=\"_blank\" rel=\"noreferrer noopener\">IGS01s<\/a> have a &#8216;keep-alive&#8217; setting that allows the connection to be re-used across HTTP requests. This reduces the amount of data used on metered networks such as cellular, reduces possibly metered data throughput at the server and also reduces server loading thus improving performance.<\/p>\n\n\n\n<p>Having said all this, you should <a rel=\"noopener\" href=\"https:\/\/www.beaconzone.co.uk\/blog\/mqtt-vs-http-for-bluetooth-wifi-gateways\/\" target=\"_blank\">consider MQTT<\/a> if you are really concerned about efficiency and performance.<\/p>\n\n\n\n<p><a href=\"https:\/\/www.beaconzone.co.uk\/Gateways\" target=\"_blank\" rel=\"noreferrer noopener\">View All Gateways<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>When a Bluetooth WiFi Gateway sends data to a server via HTTP, the gateway has to connect to the server to start a connection and then use that connection to send the data. The connection part starts a new TCP connection with handshaking. Starting a new connection every time data needs to be sent to &hellip; <a href=\"https:\/\/www.beaconzone.co.uk\/blog\/reducing-bluetooth-wifi-gateway-connections\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Reducing Bluetooth WiFi Gateway Connections&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[76,77,164,9],"tags":[],"_links":{"self":[{"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/posts\/2044"}],"collection":[{"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=2044"}],"version-history":[{"count":10,"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/posts\/2044\/revisions"}],"predecessor-version":[{"id":8122,"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/posts\/2044\/revisions\/8122"}],"wp:attachment":[{"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=2044"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=2044"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=2044"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}