Method: Particle::Device#change_product

Defined in:
lib/particle/device.rb

#change_product(product_id, should_update = false) ⇒ boolean

Change the product_id on the device. Use this carefully, it will impact what updates you receive, and can only be used for products that have given their permission

Parameters:

  • product_id (String)

    New product id

  • should_update (String) (defaults to: false)

    if the device should be immediately updated after changing the product_id

Returns:

  • (boolean)

    true on success



162
163
164
# File 'lib/particle/device.rb', line 162

def change_product(product_id, should_update = false)
  @client.change_device_product(self, product_id, should_update)
end