This is a unique String ID assigned to this tile and is used (by you) to identify what tile sent what data by your script.
Note that this is case sensitive, and cannot contain any white space.
This modifies the size of the button as it appears on your screen. Its units of measurement is tiles. Since each tile that can have its size modified is aware of its surroundings, the numeric steppers used to adjust the tile size will stop you from overlapping with other tiles or going over the edge of the screen.
This modifies when the data is sent. Value Changed will send the current value as the user swipes along the slider and the current value does not equal the previous value. Slider Released will only send the current value when the user takes their finger off the slider tile.
This sets how the slider responds by setting a maximum, a minimum, and a step value for the stepper. Step value is the amount the value of the tile increments or decrements by when the user slides along the slider.
This may cause a snapping effect, where the slider knob jumps to a part in the slider that corresponds to the step value.
Also note that each field does not have to be an integer.
You can set the position of the slider by sending a number within the range set in the tile's settings.
Integer → Integer within range set in tile's settings → Set the slider value.
Float → Float within range set in tile's settings → Set the slider value.
This is a simple demo where the script set the value of the slider with the tag speedSlider
to 0 when it first connects, as a default value.
def forceServerDeviceConnectedWithName(self, deviceName): self.force.sendMessage(deviceName, "speedSlider", 0)
The following is what data is sent from this tile to the server/your script. It is in the format:
Action → Data Type → Value
Slider Value Changed → Integer → An Integer between set range. OR
Slider Value Changed → Float → A Float between set range.
Slider Released → Integer → An Integer between set range. OR
Slider Released → Float → A Float between set range.
Note that a tile's tag is always sent to the server for identification purposes.
This is a simple demo where the script will set the speed of the motors to the data sent by the slider.
def forceServerDidReceiveData(self, deviceName, senderTag, data): if senderTag == "speedSlider": self.setMotorSpeed(data)