-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Description
Using the basic code on my A1 and getting STATUS UKNOWN
IP = '192.168.1.200' fake
SERIAL = '02919C430100335' fake
ACCESS_CODE = '10892895' fake
if name == 'main':
print('Starting bambulabs_api example')
print('Connecting to BambuLab 3D printer')
print(f'IP: {IP}')
print(f'Serial: {SERIAL}')
print(f'Access Code: {ACCESS_CODE}')
Create a new instance of the API
printer = bl.Printer(IP, ACCESS_CODE, SERIAL)
# Connect to the Bambulabs 3D printer
printer.connect()
time.sleep(2)
# Get the printer status
status = printer.get_state()
print(f'Printer status: {status}')
# Turn the light off
printer.turn_light_off()
time.sleep(2)
# Turn the light on
printer.turn_light_on()
# Disconnect from the Bambulabs 3D printer
printer.disconnect()
Metadata
Metadata
Assignees
Labels
No labels