public
ConnectedThread(BluetoothSocket socket)
{mmSocket = socket;
InputStream tmpIn = null;
OutputStream tmpOut = null;
try { tmpIn =
socket.getInputStream();
tmpOut = socket.getOutputStream();}
catch (IOException e) { }
mmInStream = tmpIn;
mmOutStream = tmpOut;
}
public void run() { byte[] buffer =
new byte[256]; int bytes;
while (true) {
try {
bytes = mmInStream.read(buffer);
h.obtainMessage(RECIEVE_MESSAGE,
bytes, -1,buffer).sendToTarget();}
catch (IOException e) {
break; } } }
3 CONCLUSIONS
The use of the Arduino to create measuring
instruments has long been popular, but in this article,
we try to show how the interaction of two different
systems simplifies the transmission, reception, and
processing of data. The study selected Bluetooth for
wireless data, which is most convenient for use within
a home or small household. That is, it is convenient
for data transmission over short distances,
economically accessible, easy to program and
operate. The result of the study is an application for a
smartphone with the Android operating system for
receiving data from the meteorological station. The
versatility of this application is added by the fact that
it is not connected to sensors and can receive, display
and store data from any Bluetooth device. This
application can be developed and can later be used to
manage a "smart home".
Compared to existing meteorological stations, this
development has advantages and disadvantages. The
advantage is convenient remote control. A
smartphone is always at hand for everyone, and a
locally installed weather station must be nearby. Also,
with the help of the application you can connect other
weather stations or devices according to the Bluetooth
protocol. However, the latter may be a disadvantage,
because the data from this meteorological station can
be obtained by anyone who installs the application.
REFERENCES
H. Saini, A. Thakur, S. Ahuja, N. Sabharwal, N. Kumar,
2016. Arduino based automatic wireless weather station
with remote graphical application and alerts, in: 3rd Int.
Conf. Signal Process. Integr. Networks, SPIN 2016,
pages 605–609.
N. Yaremchuk, R. Semenjuk, 2017. Working of verbal data
for the constructions of card. Metrology and devices, 5:
pages 58-61
Jing Xin GAO, Hao MA, Hao LIU, 2016. The intelligent
weather station system based on Arduino. International
Conference on Engineering and Advanced Technology
(ICEAT 2016), pages 300-308
Different Types of Wireless Communication Technologies.
https://www.watelectronics.com/different-types-of-
wireless-communication-technologies/
Zigbee. https://zigbeealliance.org/solution/zigbee/
Bluetooth Tutorial Tutorial-Reports.com.
http://www.tutorial-
reports.com/wireless/bluetooth/tutorial.php
Bluetooth® Technology Website.
https://www.bluetooth.com/
Датчики температуры и влажности DHT11 и DHT22 и
Arduino Arduino-diy.com. http://arduino-
diy.com/arduino-datchiki-temperatury-i-vlazhnosti-
DHT11-i-DHT22
Comparison of Wireless Technologies Bluetooth, WiFi,
BLE, Zigbee, Z-Wave, 6LoWPAN, NFC, WiFi Direct,
GSM, LTE, LoRa, NB-IoT, and LTE-M.
https://predictabledesigns.com/wireless_technologies_
bluetooth_wifi_zigbee_gsm_lte_lora_nb-iot_lte-m/
What are ZigBee, WiFi, Bluetooth, BLE, and WiMax by
Brian Ray IoT For All Medium.
https://medium.com/iotforall/what-are-zigbee-wifi-
bluetooth-ble-and-wimax-260916018f34
What is WiFi and How Does it Work - CCM.
https://ccm.net/faq/298-what-is-wifi-and-how-does-it-
work
HC 06 Bluetooth module pinout, features & datasheet.
https://components101.com/wireless/hc-06-bluetooth-
module-pinout-datasheet