Peter
Peter

Reputation: 1249

Samsung Tizen Timer settings

I was built a samsung smart TV app, and there is a timer on the device, what sets up the turn on and the turn off periods to the device. Can I update that periods via web application?

Upvotes: 1

Views: 1505

Answers (1)

Koenigsberg
Koenigsberg

Reputation: 1798

Yes you can. There is an API to do just that:

www.samsungdforum.com/B2B/Guide/APIReference/SSSP4/tizen2821/index.html#setOnTimer

It's hard to find that documentation. If you scroll up at the page I linked you will see a summary of methods, there is a whole section for timer-settings.

Example from the link:

var onSuccess = function(val) {
  console.log("[setOnTimer] success : " + val);
};
var onError = function(error) {
  console.log("[setOnTimer] code :" + error.code + " error name: " +                   error.name + "  message " +  error.message);
};
console.log("[setOnTimer] ");
b2bapis.b2bcontrol.setOnTimer("TIMER6","21:30", onSuccess, onError);

Upvotes: 2

Related Questions