I just checked this and it seems to be in some sort of in-between stateIn current scratch, the remote network connection is enabled by default.
I have been working on other non-piface projects, so I have not had much to say about this thread recently. I did launch scratch and handler last night, using a some code that I assembled the last time I had both talking to each other and upon starting the program for the first time my relays opened and close via piface, performed their iterative function and shut off cleanly. I tried to show the program running to my daughter by starting it up again, and I got the sending through outputs acknowledgement with no relay function, again. I did not have a lot of time to work with it so I simply went to the sense blocks disabled and re-enabled them which accomplished nothing. Hopefully after the holiday here I will be able to focus some time on the issue. However since I have other projects that are quite productive I am not too inclined to mess with the Piface and Scratch combo.timrowledge wrote:Not at all sure you're doing anything wrong at all! It's going to be tricky debugging this since I don't have a Piface to test with... but patience and wild guesses may save the day
One test to try -
drag one of the sensor [button pressed] tiles into the script editor
get the menu to 'disable remote sensor connections' and do that
*then* load your project file.
My hypothesis is that we will have properly closed the sockets *before* loading your code. My hope is that this will show us that I at least sort of understand what is going on....
Code: Select all
data = scratch_socket.recv(BUFFER_SIZE).decode('utf-8') data = data[4:] # get rid of the length info