Skip to content

brick stacks with Ethernet Master Extension(w5500)

brick stacks with Ethernet Master Extension(w5500)

irina

Published March 29, 2022

Project description

from tinkerforge.ip_connection import IPConnection from tinkerforge.bricklet_temperature import BrickletTemperature HOST = "192.168.1.103" PORT = 4223 UID = "YOUR BRICKLET ID" if __name__ == "__main__": ipcon = IPConnection() sensor = BrickletTemperature(UID, ipcon) ipcon.connect(HOST, PORT) temperature = sensor.get_temperature() print("Temperature: " + str(temperature / 100.0) + " °C") ipcon.disconnect()

Comments

Comments